/* ------------------------------------------------------------------------
   Homepage — same card-menu language as Dinner: white ground, deep gold
   labels, italic subtext, and the lattice-diamond ornament as a divider.
   ------------------------------------------------------------------------ */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --tint: #f7f6f3;
  --tint-deep: #f0eee9;

  --ink: #2e2b26;
  --ink-soft: #4b4740;
  --muted: #6f6a60;
  --faint: #9a958a;

  --gold: #8c6d1f;
  --gold-soft: #a98c46;
  --gold-wash: #faf6ea;

  --line: #e2ded4;
  --line-soft: #eeebe3;

  --ui: "Source Sans 3", "Source Sans Pro", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 2px;

  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'%3E%3Cg fill='none' stroke='%238c6d1f' stroke-width='0.9'%3E%3Crect x='2.6' y='2.6' width='9.8' height='9.8' transform='rotate(45 7.5 7.5)'/%3E%3Crect x='5' y='5' width='5' height='5' transform='rotate(45 7.5 7.5)'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 96px 28px 96px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  text-align: center;
  margin-bottom: 44px;
}

.portrait {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 28px;
  display: block;
  border: 1px solid var(--line);
}

/* TUNGDAMNEONSAWASDI is one 18-character word with no break opportunity, so
   the type has to scale with the viewport or it pushes the page sideways on a
   320px phone. break-word is the backstop for the moment before the webfont
   loads, when the wider fallback face is measuring the line. */
.hero h1 {
  font-size: clamp(20px, 6.4vw, 31px);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  overflow-wrap: break-word;
}

.hero .tagline {
  margin: 0;
  font-size: 17.5px;
  font-style: italic;
  color: var(--ink-soft);
}

.rule {
  width: 15px;
  height: 15px;
  border: 0;
  background: var(--ornament) center / contain no-repeat;
  margin: 30px auto 0;
}

/* ------------------------------------------------------------------- about */

.about {
  max-width: 50ch;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- meta row */

.meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 48px;
}

.meta-item {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

.meta-item .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 6px;
}

/* --------------------------------------------------------------- app grid */

/* The quiet gold rubric the printed menu sets above a course. */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 16px;
}

.apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 44px;
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 24px 18px;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, background .18s ease;
}

.app:hover { border-color: var(--gold); background: var(--gold-wash); }

.app-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.app-sub {
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
  color: var(--muted);
}

/* Decorative: the empty alt text keeps screen readers from announcing
   "right arrow" after every link name. */
.app::after {
  content: "\2192" / "";
  font-size: 14.5px;
  color: var(--faint);
  transition: transform .18s ease, color .18s ease;
}

.app:hover::after { color: var(--gold); transform: translateX(4px); }

/* -------------------------------------------------------------------- links */

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, background .18s ease;
}

.link-row:hover { border-color: var(--gold); background: var(--gold-wash); }

.link-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.link-value {
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-row::after {
  content: "\2192" / "";
  font-size: 14.5px;
  color: var(--faint);
  flex: none;
  transition: transform .18s ease, color .18s ease;
}

.link-row:hover::after { color: var(--gold); transform: translateX(4px); }

/* -------------------------------------------------------------------- foot */

/* --faint on white is 2.98:1 — under the 4.5:1 body text needs, and this is
   the smallest type on the page. --muted carries it at 5.4:1. */
.foot {
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .04em;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

/* ------------------------------------------------------------ narrow screens */

@media (max-width: 620px) {
  .wrap { padding: 64px 22px 72px; }
  .meta { gap: 6px 20px; }

  /* Side by side still, but the arrow is a hover affordance a touch screen
     never shows anyway. */
  .apps { gap: 10px; }
  .app { padding: 20px 12px; gap: 5px; }
  .app-name { font-size: 13px; letter-spacing: .12em; }
  .app-sub { font-size: 13px; }
  .app::after { display: none; }
}
