/* ==========================================================================
   SHARAYU DIGITAL LAB — style.css
   A quiet, editorial stylesheet. System fonts only, no external dependencies.
   ========================================================================== */

:root {
  /* Colour */
  --bg: #FAF8F3;
  --bg-raised: #F3EFE6;
  --text: #211F1B;
  --muted: #736C63;
  --muted-soft: #A39B90;
  --accent: #8C5233;
  --accent-soft: #A9714E;
  --border: #E7E1D5;

  /* Type */
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 760px;
  --wide-width: 860px;
  --pad-inline: clamp(24px, 7vw, 32px);

  /* Spacing scale */
  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
}

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

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

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

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p { margin: 0; }

button { font-family: inherit; }

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.wrap-wide {
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

main { display: block; }

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

main {
  animation: page-fade-in 0.35s ease both;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
}

/* Desktop nav */
.site-nav {
  display: flex;
  gap: var(--sp-5);
}

.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px 2px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.menu-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  padding: var(--sp-2) var(--pad-inline) var(--sp-4);
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  padding: var(--sp-2) 0;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav li:last-child a { border-bottom: none; }

.mobile-nav a[aria-current="page"] { color: var(--accent); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-block; }
}

/* ---------- Small label ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: var(--sp-3);
}

/* ---------- Hero (homepage) ---------- */
.hero {
  padding-top: clamp(64px, 12vw, 108px);
  padding-bottom: clamp(56px, 10vw, 88px);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 15ch;
}

.hero__lede {
  margin-top: var(--sp-4);
  font-size: clamp(15.5px, 2vw, 17px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

.hero__body {
  margin-top: var(--sp-3);
  font-size: clamp(15.5px, 2vw, 17px);
  line-height: 1.6;
  color: var(--text);
  max-width: 62ch;
}

.hero__actions {
  margin-top: var(--sp-6);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 3px;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn--primary:hover {
  opacity: 0.85;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--muted-soft);
  color: var(--accent);
}

/* ---------- Page header block (Work / Experiments / Journal / About) ---------- */
.page-head {
  padding-top: clamp(48px, 9vw, 80px);
  padding-bottom: var(--sp-5);
}

.page-head h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.28;
  max-width: 20ch;
}

.page-head__support {
  margin-top: var(--sp-3);
  font-size: clamp(15.5px, 2vw, 16.5px);
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.6;
}

/* ---------- Editorial list (Work / Experiments) ---------- */
.entry-list {
  border-top: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}

.entry {
  border-bottom: 1px solid var(--border);
}

.entry__link {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-5) 0;
  color: inherit;
  transition: padding-left 0.2s ease;
}

.entry__link:hover,
.entry__link:focus-visible {
  padding-left: 6px;
}

.entry__link:hover .entry__title,
.entry__link:focus-visible .entry__title {
  color: var(--accent);
}

.entry__link:hover .entry__arrow,
.entry__link:focus-visible .entry__arrow {
  opacity: 1;
  transform: translateX(0);
}

.entry__index {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted-soft);
  padding-top: 4px;
  letter-spacing: 0.02em;
}

.entry__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.35;
  color: var(--text);
  margin-bottom: var(--sp-2);
  transition: color 0.2s ease;
}

.entry__arrow {
  display: inline-block;
  margin-left: 4px;
  opacity: 0;
  transform: translateX(-4px);
  color: var(--accent);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.entry__question {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}

.entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.entry__status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--accent-soft);
}

.entry__focus {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted-soft);
}

.list-footnote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--muted-soft);
  margin-bottom: var(--sp-7);
}

@media (max-width: 560px) {
  .entry__link { grid-template-columns: 1fr; gap: var(--sp-1); }
  .entry__index { padding-top: 0; }
}

/* ---------- Experiments intro note ---------- */
.intro-note {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-5);
}

/* ---------- Journal list ---------- */
.journal-list {
  border-top: 1px solid var(--border);
  margin-bottom: var(--sp-7);
}

.journal-item {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: var(--sp-3);
  align-items: baseline;
}

.journal-item__index {
  font-size: 13px;
  color: var(--muted-soft);
}

.journal-item__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.4;
  color: var(--text);
}

.journal-item__soon {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--muted-soft);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .journal-item {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }
  .journal-item__soon { justify-self: start; margin-top: var(--sp-1); }
}

/* ---------- About page ---------- */
.about-body p {
  font-size: clamp(15.5px, 2vw, 17px);
  line-height: 1.65;
  color: var(--text);
  max-width: 62ch;
  margin-bottom: var(--sp-3);
}

.exploring {
  margin-top: var(--sp-6);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
}

.exploring h2 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}

.exploring ul {
  display: flex;
  flex-wrap: wrap;
  row-gap: var(--sp-2);
}

.exploring li {
  font-size: 15px;
  color: var(--text);
  padding-inline-end: var(--sp-3);
  margin-inline-end: var(--sp-3);
  border-right: 1px solid var(--border);
}

.exploring li:last-child {
  border-right: none;
  padding-inline-end: 0;
  margin-inline-end: 0;
}

.contact {
  margin-top: var(--sp-6);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-6);
}

.contact h2 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}

.contact a {
  font-size: 16px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.contact a:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-6);
}

.site-footer__inner {
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.site-footer__brand {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer__tag {
  margin-top: var(--sp-1);
  font-size: 13px;
  color: var(--muted);
}

.site-footer__copy {
  margin-top: var(--sp-3);
  font-size: 12.5px;
  color: var(--muted-soft);
}

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