:root {
  color-scheme: light;
  --ink: #242321;
  --muted: #78736b;
  --line: #dfddd7;
  --soft-line: #ebe9e3;
  --paper: #f8f7f3;
  --card: #ffffff;
  --accent: #d8f04d;
  --accent-dark: #718208;
  --danger: #a04b3e;
  --shadow: 0 20px 65px rgba(52, 49, 37, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", sans-serif;
  line-height: 1.6;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo-frame {
  display: block;
  width: 104px;
  height: 28px;
  overflow: hidden;
}

.inu-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-divider {
  width: 1px;
  height: 21px;
  background: var(--line);
}

.local-badge {
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-badge span {
  margin-right: 6px;
  color: var(--accent-dark);
  font-size: 0.6rem;
}

.intro-section {
  padding: 94px 0 72px;
}

.eyebrow,
.section-label,
.site-footer {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.66rem;
}

.eyebrow span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dark);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 650px;
  margin-top: 18px;
  font-size: clamp(3.4rem, 8vw, 7.3rem);
  font-weight: 800;
  letter-spacing: -0.105em;
  line-height: 0.98;
}

h1 em {
  color: var(--accent-dark);
  font-style: normal;
}

.intro-copy {
  margin-top: 27px;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: -0.04em;
  line-height: 1.9;
}

.write-card {
  padding: clamp(25px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card-heading,
.notes-heading,
.form-footer,
.post-meta,
.post-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.section-label {
  color: var(--accent-dark);
  font-size: 0.65rem;
}

h2 {
  margin-top: 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1.2;
}

.card-number {
  color: var(--soft-line);
  font-family: "DM Sans", sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}

.post-form {
  margin-top: 36px;
}

.field-group + .field-group {
  margin-top: 23px;
}

label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 700;
}

input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  background: #fcfcfa;
  color: var(--ink);
  font-size: 0.93rem;
  letter-spacing: -0.035em;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input {
  height: 53px;
  padding: 0 16px;
}

textarea {
  min-height: 143px;
  padding: 15px 16px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #adaaa3;
}

input:focus,
textarea:focus {
  border-color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(216, 240, 77, 0.28);
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: #a09c94;
  font-size: 0.7rem;
  text-align: right;
}

.form-footer {
  align-items: center;
  gap: 20px;
  margin-top: 27px;
}

.form-message {
  min-height: 24px;
  color: var(--danger);
  font-size: 0.78rem;
  letter-spacing: -0.03em;
}

.form-message.success {
  color: var(--accent-dark);
}

.submit-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 51px;
  padding: 0 16px 0 21px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.submit-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.submit-button:focus-visible,
.delete-button:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.button-arrow {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
}

.notes-section {
  padding: 105px 0 88px;
}

.notes-heading {
  align-items: end;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.post-count {
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

.empty-state {
  padding: 84px 20px 95px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.2rem;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.empty-state p {
  margin-top: 5px;
  font-size: 0.8rem;
}

.post-list {
  display: grid;
  gap: 13px;
  padding-top: 21px;
}

.post-card {
  padding: 25px 27px 23px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 160ms ease, transform 160ms ease;
}

.post-card:hover {
  border-color: #b8b3a8;
  transform: translateY(-2px);
}

.post-card-heading {
  gap: 16px;
}

.post-card h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.4;
}

.post-content {
  margin-top: 13px;
  color: #5f5b54;
  font-size: 0.88rem;
  letter-spacing: -0.035em;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.post-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.reaction-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 47px;
  min-height: 31px;
  padding: 4px 9px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: #fcfcfa;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.reaction-button:hover {
  border-color: var(--accent-dark);
  background: #f7fbdc;
  transform: translateY(-1px);
}

.reaction-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.reaction-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.reaction-emoji {
  line-height: 1;
}

.reaction-count {
  min-width: 1ch;
  color: #8d887e;
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
}

.post-meta {
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  color: #aaa59b;
  font-family: "DM Sans", "Noto Sans KR", sans-serif;
  font-size: 0.68rem;
}

.delete-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #aaa59b;
  cursor: pointer;
  font-size: 0.68rem;
  transition: color 160ms ease;
}

.delete-button:hover {
  color: var(--danger);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 21px 0 28px;
  border-top: 1px solid var(--line);
  color: #aaa59b;
  font-size: 0.59rem;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    padding: 22px 0;
  }

  .local-badge {
    font-size: 0.56rem;
  }

  .intro-section {
    padding: 69px 0 53px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .intro-copy {
    font-size: 0.87rem;
  }

  .form-footer {
    display: block;
  }

  .submit-button {
    width: 100%;
    margin-top: 8px;
  }

  .notes-section {
    padding: 78px 0 65px;
  }

  .post-card {
    padding: 21px 19px 20px;
  }

  .site-footer {
    display: block;
    line-height: 2;
  }

  .site-footer span {
    display: block;
  }
}
