/* Siqi Liu — "Limestone" palette, Newsreader throughout */
:root {
  --bg: #EFEBE3;
  --ink: #1B1A18;
  --body: #2A2824;
  --muted: #5B574F;
  --accent: #34503F;
  --rule: #A39C8E;
  --field-bg: #E6E1D7;
  --field-border: #CFC7B8;
  --font: 'Newsreader', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

a { color: var(--ink); }
a:hover { color: var(--accent); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}

/* Layout shell */
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
  padding-top: 48px;
}

.site-name {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 18px;
}

.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

main {
  flex-grow: 1;
  padding: 96px 0 80px;
}

.site-footer {
  padding: 24px 0 48px;
  font-size: 15px;
  color: var(--muted);
}

.page-title {
  margin: 0;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
}

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 72px;
  align-items: flex-start;
}

.about img {
  flex: 1 1 300px;
  max-width: 400px;
  min-width: 0;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.about .bio {
  flex: 999 1 380px;
  min-width: 0;
  max-width: 560px;
  padding-top: 8px;
}

.about .bio p {
  margin: 0;
  font-size: 21px;
  line-height: 1.65;
  color: var(--body);
}

/* Writing */
.writing {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.writing section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.writing h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
}

.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.works li {
  font-size: 22px;
  line-height: 1.5;
}

.works a {
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
}

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

/* Contact */
.contact {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.agents {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agents h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.agents p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.agents a {
  font-size: 18px;
  line-height: 1.6;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form .intro {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--body);
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-row .field { flex: 1 1 220px; }

.field label { font-size: 16px; }

.field input,
.field textarea {
  font-family: inherit;
  font-size: 18px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  background: var(--field-bg);
  color: var(--ink);
  outline-offset: 4px;
  width: 100%;
}

.field textarea {
  line-height: 1.5;
  resize: vertical;
}

.button {
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  min-height: 48px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.button:disabled { opacity: 0.6; cursor: wait; }

.form-error {
  margin: 0;
  font-size: 17px;
  color: #8A2F22;
}

.form-sent {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.form-sent .thanks {
  margin: 0;
  font-size: 20px;
  font-style: italic;
}

.link-button {
  font-family: inherit;
  font-size: 17px;
  padding: 0;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.link-button:hover { color: var(--accent); }

[hidden] { display: none !important; }

@media (max-width: 600px) {
  main { padding: 64px 0 56px; }
  .site-header { padding-top: 32px; }
  .page-title { font-size: 36px; }
}
