/* ==========================================================
   dana kyoto — v2
   pretendard-led · mauve-forward · photo-dominant · dense
   ========================================================== */

:root {
  /* mauve-pink base */
  --bg:        #e8d9dc;   /* dusty sakura, the page lead */
  --bg-warm:   #ead7d3;   /* warmer band */
  --bg-deep:   #d4bcc2;   /* recessed surfaces */
  --bg-soft:   #f1e4e6;   /* highlight */

  /* ink */
  --ink:       #2a1f25;   /* plum-black, body */
  --ink-2:     #5a4651;   /* secondary */
  --ink-3:     #7e6c75;   /* muted */

  /* accents */
  --mauve:     #b48295;   /* active mauve */
  --plum:      #6b3f54;   /* deep accent */
  --matcha:    #6b7a4f;   /* supporting only */
  --navy:      #3a4858;
  --line:      #c6acb3;

  --kr: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
        system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --jp: "Noto Sans JP", var(--kr);
  --mono: var(--kr);   /* no monospace — Pretendard handles small labels too */
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--kr);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "ss03";
  min-width: 375px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--plum); color: var(--bg-soft); }

/* ==========================================================
   layout shell
   ========================================================== */
.page { max-width: 100%; margin: 0; }
.bound {
  margin: 0 auto;
  padding: 0 22px;
}
@media (min-width: 760px) {
  .bound { max-width: 720px; padding: 0 40px; }
}

/* cap whole document on big screens so it reads like a magazine page,
   not a banner. mobile stays edge-to-edge. */
@media (min-width: 760px) {
  .masthead,
  .hero,
  .section,
  .cat-rest,
  footer {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
  }
  body {
    padding: 0;
    background:
      linear-gradient(var(--bg-deep), var(--bg-deep)) center / 100% 100% no-repeat;
  }
}

/* ==========================================================
   top meta strip — dense, almost like a magazine masthead
   ========================================================== */
.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.masthead .slug { color: var(--ink); font-weight: 600; }
.masthead .center {
  text-align: center;
  font-family: var(--kr);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 10.5px;
}
.masthead .center .kr { color: var(--plum); }
.masthead .right { color: var(--ink-3); }

/* ==========================================================
   HERO — photo dominant, name overlaid below
   ========================================================== */
.hero {
  position: relative;
  background: var(--bg);
}
@media (min-width: 760px) {
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
  }
}
.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--bg-deep);
  background-image: url("images/dana-hero.png");
  background-size: cover;
  background-position: 50% 36%;
  background-repeat: no-repeat;
  filter: saturate(0.94);
}
@media (min-width: 760px) {
  .hero-photo { aspect-ratio: auto; height: 100%; min-height: 460px; }
}
/* corner tags burned onto the photo */
.photo-tags {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245, 235, 237, 0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
  pointer-events: none;
}
.photo-tags .right { text-align: right; }
.photo-tags .frame {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(245, 235, 237, 0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
  letter-spacing: 0.05em;
}
.photo-tags .frame::before {
  content: "▢ ";
  color: var(--mauve);
}

/* big name block — Pretendard Black, lowercase, tight */
.titleblock {
  padding: 26px 22px 30px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .titleblock {
    padding: 32px 28px 30px;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--bg);
  }
}
.titleblock .row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 14px;
  line-height: 0.92;
}
.titleblock .name-en {
  font-weight: 900;
  font-size: clamp(58px, 12vw, 96px);
  letter-spacing: -0.045em;
  color: var(--ink);
}
.titleblock .name-kr {
  font-weight: 700;
  font-size: clamp(42px, 9vw, 72px);
  letter-spacing: -0.04em;
  color: var(--plum);
}
.titleblock .pron {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.titleblock .pron b { color: var(--ink); font-weight: 500; }
.titleblock .tagline {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  max-width: 34rem;
}
.titleblock .tagline .kr {
  color: var(--plum);
  font-weight: 600;
  margin-right: 4px;
}
.titleblock .tagline em {
  font-style: normal;
  background: linear-gradient(to top, var(--mauve) 0 38%, transparent 38% 100%);
  padding: 0 2px;
}

/* ==========================================================
   bilingual section header
   ========================================================== */
.section {
  padding: 38px 0;
  background: var(--bg);
}
.section.warm  { background: var(--bg-warm); }
.section.deep  { background: var(--bg-deep); color: var(--ink); }
.section.plum  { background: var(--plum); color: var(--bg-soft); }

/* alternating section tone — about & latest get the lighter white-pink */
#about, #latest { background: #f5ecf0; }
#latest { padding-bottom: 0; }

/* find-me — pink section with lighter (almost white) social cards on top */
#find-me .social a { background: #fbf7f9; }
#find-me .social a:hover,
#find-me .social a:focus-visible { background: var(--plum); }
#find-me .social .featured-social { grid-column: 1 / -1; }
.section.plum .label-en,
.section.plum .label-kr,
.section.plum .label-num { color: var(--bg-soft); }

.label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.section.plum .label { border-color: rgba(241,228,230,0.25); }
.label-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.label-kr {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--plum);
}
.label-en {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ==========================================================
   ABOUT — bilingual running text + 4-cell info grid
   ========================================================== */
.bio {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 36rem;
  font-weight: 400;
}
.bio .kr {
  color: var(--plum);
  font-weight: 600;
}
.bio .accent {
  color: var(--mauve);
  font-weight: 600;
}
.bio p + p { margin-top: 12px; }

.info-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 600px) {
  .info-grid { grid-template-columns: repeat(4, 1fr); }
}
.info-cell {
  background: var(--bg);
  padding: 14px 14px 16px;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.info-cell .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.info-cell .k > span { white-space: nowrap; }
.info-cell .k .kr {
  font-family: var(--kr);
  letter-spacing: -0.01em;
  color: var(--plum);
  font-weight: 600;
  text-transform: none;
  font-size: 11px;
}
.info-cell .v {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.info-cell .v .sub {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-top: 2px;
  font-family: var(--jp);
}

/* ==========================================================
   SOCIAL — dense 2-column block, no chips, no hairlines
   ========================================================== */
.social {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.social a {
  background: var(--bg-soft);
  padding: 16px 14px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  column-gap: 14px;
  transition: background .25s ease, color .25s ease;
  position: relative;
}
.social .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--mauve);
  transition: color .25s ease;
}
.social .ico svg { width: 100%; height: 100%; }
.social .text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.social a:hover,
.social a:focus-visible {
  background: var(--plum);
  color: var(--bg-soft);
  outline: none;
}
.social a:hover .ico { color: var(--bg-soft); }
.social a:hover .num,
.social a:hover .handle { color: var(--bg-soft); opacity: 0.8; }
.social .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.social .name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: inherit;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.social .name::after {
  content: "↗";
  font-weight: 500;
  font-size: 14px;
  color: var(--mauve);
  transition: transform .3s ease;
}
.social a:hover .name::after {
  color: var(--bg-soft);
  transform: translate(3px, -2px);
}
.social .handle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

/* ==========================================================
   FEATURED POST — photo-band, content-dense
   ========================================================== */
.featured {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
@media (min-width: 600px) {
  .featured { grid-template-columns: 1.1fr 1fr; }
}

.featured-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background-image: url("images/latest-post.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
@media (min-width: 600px) {
  .featured-img { aspect-ratio: auto; min-height: 320px; }
}
.featured-img .stamp {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--bg-soft);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.featured-img .stamp::before {
  content: "●";
  color: #c14b4b;
  margin-right: 6px;
}

.featured-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.featured-body .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.featured-body .title-kr {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--plum);
}
.featured-body .title-en {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.featured-body .desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.featured-body .desc .kr { color: var(--plum); font-weight: 600; }
.featured-body .cta {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--plum);
  color: var(--bg-soft);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background .25s ease;
}
.featured-body .cta:hover { background: var(--ink); }
.featured-body .cta .ar {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 13px;
}

/* ==========================================================
   LOVING — 4-up dense grid on white-ish surface
   ========================================================== */
.loving-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 600px) {
  .loving-grid { grid-template-columns: repeat(4, 1fr); }
}
.loving-card {
  background: var(--bg-soft);
  aspect-ratio: 3 / 4;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  overflow: hidden;
  transition: background .3s ease;
}
.loving-card:nth-child(2) { background: var(--bg-warm); }
.loving-card:nth-child(3) { background: var(--bg-deep); }
.loving-card:nth-child(4) { background: var(--bg-soft); }
.loving-card .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.loving-card .top .n { color: var(--plum); font-weight: 700; }
.loving-card .body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.loving-card .kr {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.loving-card .en {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.loving-card .status {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--mauve);
  text-transform: uppercase;
}
.loving-card .status::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mauve);
  margin-right: 5px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.loving-card:hover { background: var(--mauve); }
.loving-card:hover .kr,
.loving-card:hover .en,
.loving-card:hover .top,
.loving-card:hover .top .n,
.loving-card:hover .status { color: var(--bg-soft); }

/* ==========================================================
   CONTACT — high-contrast band
   ========================================================== */
.section.plum { padding: 48px 0 56px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 600px) {
  .contact-grid { grid-template-columns: 1fr auto; align-items: end; }
}
.contact-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--bg-soft);
  max-width: 30rem;
}
.contact-text .kr { color: var(--mauve); font-weight: 700; }

.email-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 22px;
  background: var(--bg-soft);
  color: var(--plum);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
}
.email-btn:hover {
  background: var(--mauve);
  color: var(--bg-soft);
}
.email-btn .ar { font-family: var(--mono); font-weight: 400; font-size: 14px; }

.contact-aux {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(241, 228, 230, 0.7);
  text-transform: uppercase;
}
.contact-aux a {
  color: var(--bg-soft);
  border-bottom: 1px solid var(--mauve);
  padding-bottom: 1px;
}
.contact-aux a:hover { color: var(--mauve); }

/* ==========================================================
   sitting cat — CSS animation (adapted from codepen.io/agoodwin/pen/ypeWYE)
   ========================================================== */
.cat-rest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: #f5ecf0;
  padding: 0;
  position: relative;
  overflow: visible;
}

.cat-rest .main {
  position: relative;
  width: 280px;
  height: 90px;
}

.cat-rest .cat {
  width: 110px;
  height: 50px;
  position: absolute;
  bottom: 0;
  right: 80px;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
}

.cat-rest .body {
  width: 110px;
  height: 50px;
  background-color: #2a1f25;
  position: absolute;
  bottom: 0;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  animation: cat-body 12s linear infinite;
  transform-origin: bottom;
}

.cat-rest .head {
  width: 70px;
  height: 45px;
  background-color: #2a1f25;
  position: absolute;
  bottom: 0;
  left: -40px;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
}

.cat-rest .ear {
  position: absolute;
  left: 4px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid #2a1f25;
  transform: rotate(-30deg);
  transform-origin: bottom center;
  animation: cat-left-ear 12s both infinite;
}
.cat-rest .ear + .ear {
  top: -12px;
  left: 30px;
  animation: cat-right-ear 12s both infinite;
}

.cat-rest .nose {
  position: absolute;
  bottom: 10px;
  left: -10px;
  background-color: var(--mauve);
  height: 5px;
  width: 5px;
  border-radius: 50%;
}

.cat-rest .whisker-container {
  position: absolute;
  bottom: 5px;
  left: -36px;
  width: 20px;
  height: 10px;
  transform-origin: right center;
  animation: cat-left-whisker 12s both infinite;
}
.cat-rest .whisker-container:nth-child(2) {
  left: -20px;
  bottom: 12px;
  transform: rotate(180deg);
  transform-origin: right center;
  animation: cat-right-whisker 12s both infinite;
}

.cat-rest .whisker {
  position: absolute;
  top: 0;
  width: 100%;
  border: 1px solid #f1e4e6;
  transform-origin: 100% 0;
  transform: rotate(10deg);
}
.cat-rest .whisker:last-child {
  top: 0;
  transform: rotate(-20deg);
}

.cat-rest .tail-container {
  position: absolute;
  right: 0;
  bottom: -13px;
  z-index: 3;
}
.cat-rest .tail {
  position: absolute;
  height: 30px;
  width: 14px;
  bottom: -10px;
  right: 0;
  border-bottom-right-radius: 5px;
  background: #2a1f25;
  z-index: 0;
}
.cat-rest .tail > .tail {
  animation: cat-tail 12s linear infinite;
  height: 100%;
  width: 14px;
  transform-origin: left top;
  border-bottom-left-radius: 20px 20px;
  border-bottom-right-radius: 20px 20px;
  border-top-right-radius: 40px;
}

/* keyframes (converted from SCSS mixin output) */
@keyframes cat-tail {
  6.667% { transform: rotate(0); }
  10%    { transform: rotate(10deg); }
  16.67% { transform: rotate(-5deg); }
  20%    { transform: rotate(30deg); }
  26.67% { transform: rotate(-2deg); }
  46.67% { transform: rotate(10deg); }
  53.33% { transform: rotate(-5deg); }
  56.67% { transform: rotate(10deg); }
}
@keyframes cat-body {
  6.667% { transform: scaleY(1); }
  10%    { transform: scaleY(1.15); }
  16.67% { transform: scaleY(1); }
  20%    { transform: scaleY(1.25); }
  26.67% { transform: scaleY(1); }
  46.67% { transform: scaleY(1.15); }
  53.33% { transform: scaleY(1); }
  56.67% { transform: scaleY(1.15); }
}
@keyframes cat-left-whisker {
  6.667% { transform: rotate(0); }
  10%    { transform: rotate(0deg); }
  16.67% { transform: rotate(-5deg); }
  20%    { transform: rotate(0deg); }
  26.67% { transform: rotate(0deg); }
  46.67% { transform: rotate(10deg); }
  53.33% { transform: rotate(-5deg); }
  56.67% { transform: rotate(10deg); }
}
@keyframes cat-right-whisker {
  6.667% { transform: rotate(180deg); }
  10%    { transform: rotate(190deg); }
  16.67% { transform: rotate(180deg); }
  20%    { transform: rotate(175deg); }
  26.67% { transform: rotate(190deg); }
  46.67% { transform: rotate(180deg); }
  53.33% { transform: rotate(185deg); }
  56.67% { transform: rotate(175deg); }
}
@keyframes cat-left-ear {
  0%     { transform: rotate(-20deg); }
  6.667% { transform: rotate(-6deg); }
  13.33% { transform: rotate(-15deg); }
  26.67% { transform: rotate(-15deg); }
  33.33% { transform: rotate(-30deg); }
  40%    { transform: rotate(-30deg); }
  46.67% { transform: rotate(0deg); }
  53.33% { transform: rotate(0deg); }
  60%    { transform: rotate(-15deg); }
  80%    { transform: rotate(-15deg); }
  93.33% { transform: rotate(-6deg); }
  100%   { transform: rotate(-6deg); }
}
@keyframes cat-right-ear {
  0%     { transform: rotate(-16deg); }
  6.667% { transform: rotate(-16deg); }
  13.33% { transform: rotate(-19deg); }
  26.67% { transform: rotate(-19deg); }
  33.33% { transform: rotate(-30deg); }
  36.67% { transform: rotate(-19deg); }
  37.33% { transform: rotate(-30deg); }
  38%    { transform: rotate(-19deg); }
  40%    { transform: rotate(-19deg); }
  40.67% { transform: rotate(-30deg); }
  41.33% { transform: rotate(-19deg); }
  46.67% { transform: rotate(-9deg); }
  53.33% { transform: rotate(-9deg); }
  60%    { transform: rotate(-19deg); }
  60.67% { transform: rotate(-30deg); }
  61.33% { transform: rotate(-19deg); }
  62.67% { transform: rotate(-19deg); }
  63.33% { transform: rotate(-30deg); }
  64%    { transform: rotate(-19deg); }
  80%    { transform: rotate(-19deg); }
  93.33% { transform: rotate(-16deg); }
  100%   { transform: rotate(-16deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cat-rest * { animation: none !important; }
}

/* ==========================================================
   FOOTER — dense magazine masthead echo
   ========================================================== */
footer {
  background: var(--ink);
  color: var(--bg-deep);
  padding: 18px 22px 22px;
}
@media (min-width: 760px) { footer { padding: 22px 40px; } }
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 600px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; align-items: baseline; }
  .foot-grid > :nth-child(2) { text-align: center; }
  .foot-grid > :nth-child(3) { text-align: right; }
}
.foot-grid b { color: var(--bg-soft); font-weight: 500; }
.foot-grid .kr {
  font-family: var(--kr);
  letter-spacing: -0.01em;
  color: var(--mauve);
  text-transform: none;
  font-weight: 600;
  margin-right: 4px;
}

/* ==========================================================
   animated floral background — drifting petals
   ========================================================== */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.petals .petal {
  position: absolute;
  top: -10vh;
  width: 14px;
  height: 10px;
  background: var(--mauve);
  border-radius: 60% 40% 60% 40% / 70% 30% 70% 30%;
  opacity: 0.45;
  filter: blur(0.3px);
  transform-origin: center;
  animation: petal-fall linear infinite;
  will-change: transform;
}

/* color/size/timing variants */
.petals .petal:nth-child(5n+1) { background: #c89aa8;                    width: 12px; height: 9px;  } /* sakura */
.petals .petal:nth-child(5n+2) { background: var(--mauve);               width: 16px; height: 11px; }
.petals .petal:nth-child(5n+3) { background: var(--wisteria, #b3a8c4);   width: 13px; height: 9px;  } /* wisteria */
.petals .petal:nth-child(5n+4) { background: #d8b8b6;                    width: 11px; height: 8px;  } /* dusty rose */
.petals .petal:nth-child(5n+5) { background: #9c7e80;                    width: 15px; height: 11px; opacity: 0.32; } /* deep mauve */

/* spread 30 petals across the viewport with staggered timing */
.petals .petal:nth-child(1)  { left:  2%; animation-duration: 28s; animation-delay:  -2s; }
.petals .petal:nth-child(2)  { left:  7%; animation-duration: 36s; animation-delay:  -8s; }
.petals .petal:nth-child(3)  { left: 11%; animation-duration: 24s; animation-delay: -15s; }
.petals .petal:nth-child(4)  { left: 15%; animation-duration: 40s; animation-delay:  -4s; }
.petals .petal:nth-child(5)  { left: 19%; animation-duration: 32s; animation-delay: -22s; }
.petals .petal:nth-child(6)  { left: 23%; animation-duration: 26s; animation-delay:  -6s; }
.petals .petal:nth-child(7)  { left: 27%; animation-duration: 38s; animation-delay: -18s; }
.petals .petal:nth-child(8)  { left: 31%; animation-duration: 30s; animation-delay: -11s; }
.petals .petal:nth-child(9)  { left: 35%; animation-duration: 34s; animation-delay:  -1s; }
.petals .petal:nth-child(10) { left: 39%; animation-duration: 28s; animation-delay: -25s; }
.petals .petal:nth-child(11) { left: 43%; animation-duration: 42s; animation-delay: -13s; }
.petals .petal:nth-child(12) { left: 47%; animation-duration: 32s; animation-delay:  -7s; }
.petals .petal:nth-child(13) { left: 51%; animation-duration: 36s; animation-delay: -20s; }
.petals .petal:nth-child(14) { left: 55%; animation-duration: 26s; animation-delay:  -5s; }
.petals .petal:nth-child(15) { left: 59%; animation-duration: 30s; animation-delay: -16s; }
.petals .petal:nth-child(16) { left: 63%; animation-duration: 38s; animation-delay:  -3s; }
.petals .petal:nth-child(17) { left: 67%; animation-duration: 28s; animation-delay: -24s; }
.petals .petal:nth-child(18) { left: 71%; animation-duration: 34s; animation-delay: -10s; }
.petals .petal:nth-child(19) { left: 75%; animation-duration: 40s; animation-delay: -17s; }
.petals .petal:nth-child(20) { left: 79%; animation-duration: 24s; animation-delay:  -9s; }
.petals .petal:nth-child(21) { left: 83%; animation-duration: 32s; animation-delay: -21s; }
.petals .petal:nth-child(22) { left: 87%; animation-duration: 36s; animation-delay: -12s; }
.petals .petal:nth-child(23) { left: 91%; animation-duration: 28s; animation-delay:  -6s; }
.petals .petal:nth-child(24) { left: 95%; animation-duration: 42s; animation-delay: -23s; }
.petals .petal:nth-child(25) { left:  9%; animation-duration: 30s; animation-delay: -14s; }
.petals .petal:nth-child(26) { left: 25%; animation-duration: 38s; animation-delay: -19s; }
.petals .petal:nth-child(27) { left: 41%; animation-duration: 26s; animation-delay:  -8s; }
.petals .petal:nth-child(28) { left: 57%; animation-duration: 34s; animation-delay: -27s; }
.petals .petal:nth-child(29) { left: 73%; animation-duration: 30s; animation-delay: -11s; }
.petals .petal:nth-child(30) { left: 89%; animation-duration: 40s; animation-delay: -16s; }

@keyframes petal-fall {
  0% {
    transform: translate(0, -12vh) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.45;
  }
  50% {
    transform: translate(40px, 55vh) rotate(220deg);
  }
  92% {
    opacity: 0.45;
  }
  100% {
    transform: translate(-20px, 115vh) rotate(540deg);
    opacity: 0;
  }
}

/* every other petal drifts the opposite way for variety */
.petals .petal:nth-child(2n) {
  animation-name: petal-fall-alt;
}
@keyframes petal-fall-alt {
  0%   { transform: translate(0, -12vh) rotate(0deg);            opacity: 0; }
  8%   { opacity: 0.45; }
  50%  { transform: translate(-50px, 55vh) rotate(-180deg); }
  92%  { opacity: 0.45; }
  100% { transform: translate(30px, 115vh) rotate(-420deg);      opacity: 0; }
}

/* keep page content above the petals */
body > *:not(.petals) { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
}

/* hide petals on phones — they cluster off-screen and the page reads better without them */
@media (max-width: 759px) {
  .petals { display: none; }
}

/* ==========================================================
   accessibility focus
   ========================================================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 2px;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
