/* =========================================================
   K. TRAN — style.css
   Monochrome, lots of white space, two typefaces.
   ========================================================= */

/* The Seasons is used only for the logo and domain, where it's big
   enough to read. If you have a web licence, put the file in /fonts. */
@font-face {
  font-family: "The Seasons";
  src: local("The Seasons"), url("fonts/TheSeasons-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #111;
  --paper: #fff;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --brand: "The Seasons", "Playfair Display", Georgia, serif; /* logo + domain only */
  --display: "Playfair Display", Georgia, serif;              /* headings */
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* everything else */
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

/* Thin underline that draws in on hover */
.u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease;
}
.u:hover, .u:focus-visible { background-size: 100% 1px; }

/* ---------- Top bar: fixed, white, shrinks on scroll ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: var(--gutter) var(--gutter) 1.25rem;
  border-bottom: 1px solid transparent;
  transition: padding .4s ease, border-color .4s ease;
}
.topbar h1 {
  margin: 0;
  font-family: var(--brand);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: .9;
  letter-spacing: .01em;
  transition: font-size .4s ease;
}
.topbar nav {
  display: flex;
  gap: 1.75rem;
  font-size: .95rem;
  padding-top: .6rem;
  transition: padding .4s ease;
}
.topbar.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  align-items: center;
  border-bottom-color: var(--line);
}
.topbar.scrolled h1 { font-size: 1.75rem; }
.topbar.scrolled nav { padding-top: 0; }
/* =========================================================
   K. TRAN — style.css
   Monochrome, lots of white space, two typefaces.
   ========================================================= */

/* The Seasons is used only for the logo and domain, where it's big
   enough to read. If you have a web licence, put the file in /fonts. */
@font-face {
  font-family: "The Seasons";
  src: local("The Seasons"), url("fonts/TheSeasons-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #111;
  --paper: #fff;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --brand: "The Seasons", "Playfair Display", Georgia, serif; /* logo + domain only */
  --display: "Playfair Display", Georgia, serif;              /* headings */
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* everything else */
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

/* Thin underline that draws in on hover */
.u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease;
}
.u:hover, .u:focus-visible { background-size: 100% 1px; }

/* ---------- Top bar: fixed, white, shrinks on scroll ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: var(--gutter) var(--gutter) 1.25rem;
  border-bottom: 1px solid transparent;
  transition: padding .4s ease, border-color .4s ease;
}
.topbar h1 {
  margin: 0;
  font-family: var(--brand);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: .9;
  letter-spacing: .01em;
  transition: font-size .4s ease;
}
.topbar nav {
  display: flex;
  gap: 1.75rem;
  font-size: .95rem;
  padding-top: .6rem;
  transition: padding .4s ease;
}
.topbar.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  align-items: center;
  border-bottom-color: var(--line);
}
.topbar.scrolled h1 { font-size: 1.75rem; }
.topbar.scrolled nav { padding-top: 0; }

/* Push content below the fixed top bar (its full, unshrunk height) */
main {
  --bar-height: calc(var(--gutter) + clamp(3.5rem, 11vw, 9rem) * .9 + 1.25rem);
  padding-top: var(--bar-height);
}
main > section:first-child { border-top: 0; }

/* ---------- Sections ---------- */
section {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 3fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 4rem; /* so the fixed bar doesn't cover headings */
}
.label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .5rem;
}
.lede {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  margin: 0 0 1.5rem;
  max-width: 22em;
}
.body-copy { max-width: 36em; margin: 0; color: #333; }

/* ---------- Work list ---------- */
.work { list-style: none; margin: 0; padding: 0; }
.work li { border-bottom: 1px solid var(--line); }
.work li:first-child { border-top: 1px solid var(--line); }
.work a, .work .row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: .25rem 1rem;
  padding: 1.75rem 0;
  align-items: baseline;
}
.work .num { font-size: .85rem; color: var(--muted); }
.work h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  transition: transform .35s ease;
}
.work .meta { font-size: .85rem; color: var(--muted); text-align: right; }
.work p { grid-column: 2 / -1; margin: .35rem 0 0; color: #444; max-width: 36em; }
.work a:hover h3 { transform: translateX(.4rem); }
.work .arrow { font-family: var(--body); font-size: .7em; opacity: 0; transition: opacity .3s; }
.work a:hover .arrow { opacity: 1; }

/* ---------- Currently ---------- */
.now { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 3rem; }
.now li { padding: .35rem 0; break-inside: avoid; }
.now li::before { content: "— "; color: var(--muted); }

/* ---------- Contact ---------- */
.big-link {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1.2;
  word-break: break-word;
}
.socials { display: flex; gap: 2rem; margin-top: 2rem; font-size: .95rem; }

footer {
  padding: 2rem var(--gutter);
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Load-in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .topbar h1, .topbar nav, main > section:first-child {
    animation: rise 1s cubic-bezier(.2, .7, .2, 1) both;
  }
  .topbar nav { animation-delay: .15s; }
  main > section:first-child { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .topbar { flex-direction: column; gap: 1rem; }
  .topbar.scrolled { flex-direction: row; }
  .topbar nav { gap: 1.25rem; padding-top: 0; }
  main { padding-top: calc(var(--bar-height) + 2.75rem); } /* nav sits under the name here */
  section { grid-template-columns: 1fr; gap: 1rem; }
  .work a, .work .row { grid-template-columns: 2.25rem 1fr; }
  .work .meta { grid-column: 2; text-align: left; }
  .now { columns: 1; }
}

/* ---------- Hero: the rest of the business card ---------- */
.hero {
  min-height: 100svh;
  padding: var(--gutter);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero .card-info {
  text-align: right;
  font-size: .95rem;
  line-height: 1.7;
}
.hero .domain {
  display: block;
  font-family: var(--brand);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  margin-top: .25rem;
}

/* ---------- Sections ---------- */
section {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 3fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 4rem; /* so the fixed bar doesn't cover headings */
}
.label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .5rem;
}
.lede {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  margin: 0 0 1.5rem;
  max-width: 22em;
}
.body-copy { max-width: 36em; margin: 0; color: #333; }

/* ---------- Work list ---------- */
.work { list-style: none; margin: 0; padding: 0; }
.work li { border-bottom: 1px solid var(--line); }
.work li:first-child { border-top: 1px solid var(--line); }
.work a, .work .row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: .25rem 1rem;
  padding: 1.75rem 0;
  align-items: baseline;
}
.work .num { font-size: .85rem; color: var(--muted); }
.work h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  transition: transform .35s ease;
}
.work .meta { font-size: .85rem; color: var(--muted); text-align: right; }
.work p { grid-column: 2 / -1; margin: .35rem 0 0; color: #444; max-width: 36em; }
.work a:hover h3 { transform: translateX(.4rem); }
.work .arrow { font-family: var(--body); font-size: .7em; opacity: 0; transition: opacity .3s; }
.work a:hover .arrow { opacity: 1; }

/* ---------- Currently ---------- */
.now { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 3rem; }
.now li { padding: .35rem 0; break-inside: avoid; }
.now li::before { content: "— "; color: var(--muted); }

/* ---------- Contact ---------- */
.big-link {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1.2;
  word-break: break-word;
}
.socials { display: flex; gap: 2rem; margin-top: 2rem; font-size: .95rem; }

footer {
  padding: 2rem var(--gutter);
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Load-in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .topbar h1, .topbar nav, .hero .card-info {
    animation: rise 1s cubic-bezier(.2, .7, .2, 1) both;
  }
  .topbar nav { animation-delay: .15s; }
  .hero .card-info { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .topbar { flex-direction: column; gap: 1rem; }
  .topbar.scrolled { flex-direction: row; }
  .topbar nav { gap: 1.25rem; padding-top: 0; }
  section { grid-template-columns: 1fr; gap: 1rem; }
  .work a, .work .row { grid-template-columns: 2.25rem 1fr; }
  .work .meta { grid-column: 2; text-align: left; }
  .now { columns: 1; }
}