/* Blush palette, light only. Layout follows jay.tel: one font, one size,
   left-aligned, lowercase section labels, two-column rows. */
:root {
  color-scheme: light;
  --bg: #fdf5f3;      /* blush white */
  --text: #3d2a2e;    /* deep plum-brown, high contrast */
  --muted: #8c6a70;   /* dusty rose-brown */
  --faint: #efd6d4;   /* light blush lines */
  --tile: #f8e6e3;    /* soft pink fill */
  --accent: #c7737f;  /* rose for hovers */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --label: 180px;     /* left column width */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--faint); }

h1, h2, h3, p { margin: 0; font-size: inherit; font-weight: 400; }

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
.u { text-decoration: underline; text-decoration-color: var(--faint); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.u:hover { text-decoration-color: var(--accent); }

.muted { color: var(--muted); }

/* ---------- Page frame ---------- */
.page {
  max-width: 700px;
  padding: 32vh 26px 18vh;
}
.page.short { padding-top: 18vh; }

/* ---------- Header ---------- */
.intro { margin-bottom: 96px; }
.intro-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.name { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; }
.time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.time::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 12px; border-radius: 50%; background: var(--accent); vertical-align: middle; }

/* ---------- Sections ---------- */
section { margin-bottom: 88px; }
section > h2 { color: var(--muted); margin-bottom: 26px; }

.rows { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: var(--label) 1fr; gap: 20px; }
.row > :last-child { color: var(--muted); max-width: 30em; }
a.row:hover > :first-child, .row a:hover { color: var(--accent); }
.row.dated { grid-template-columns: var(--label) 1fr auto; }
.row.dated > p { color: var(--muted); }
.row.dated > .when { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }

.prose { color: var(--muted); max-width: 32em; }
.prose p + p { margin-top: 14px; }
.prose a { color: var(--text); }
.prose a:hover { color: var(--accent); }

/* ---------- Post ---------- */
.post .prose { color: var(--text); }
.post blockquote { margin: 20px 0; padding-left: 16px; border-left: 1.5px solid var(--faint); color: var(--muted); }
.post img { width: 100%; height: auto; margin: 16px 0; }

/* ---------- Contact form ---------- */
.contact { display: grid; gap: 14px; max-width: 30em; }
.contact input, .contact textarea {
  font: inherit; color: var(--text);
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--faint);
  padding: 2px 0 6px; border-radius: 0; resize: vertical;
  width: 100%;
}
.contact ::placeholder { color: var(--muted); opacity: .8; }
.contact input:focus, .contact textarea:focus { outline: none; border-bottom-color: var(--accent); }
.contact button {
  justify-self: start; font: inherit; color: var(--text);
  background: transparent; border: 0; padding: 0; cursor: pointer;
}
.contact button:hover { color: var(--accent); }
.contact button:disabled { opacity: .5; cursor: default; }
.contact .form-status { color: var(--muted); min-height: 1.6em; }
.contact .hp { display: none; }

/* ---------- Entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(6px); animation: rise .6s ease forwards; animation-delay: calc(var(--i, 0) * 60ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .page { padding: 20vh 20px 14vh; }
  .intro { margin-bottom: 72px; }
  section { margin-bottom: 64px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .rows { gap: 18px; }
  /* phones: company and dates on one line, description below */
  .row.dated { grid-template-columns: 1fr auto; grid-template-areas: "co when" "desc desc"; column-gap: 12px; }
  .row.dated > :first-child { grid-area: co; }
  .row.dated > p { grid-area: desc; margin-top: 4px; }
  .row.dated > .when { grid-area: when; }
}

/* Company + position stacked in the left column */
.co { display: flex; flex-direction: column; }
.co .role { color: var(--muted); }
