/* interiscool — quiet websites, all set in Inter */

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

:root {
  /* Warm greige paper, not white. Soft contrast on purpose. */
  --paper: #eae8e2;
  --paper-deep: #e4e2db;
  --card: #f1efea;
  --slot: #e3e1da;
  --ink: #1b1a17;
  --ink-soft: #4a4842;
  --ink-mute: #8d8a81;
  --ink-ghost: #c2bfb6;
  --line: rgba(27, 26, 23, 0.09);
  --line-firm: rgba(27, 26, 23, 0.16);
  --card-line: rgba(27, 26, 23, 0.08);
  --card-line-hover: rgba(27, 26, 23, 0.14);
  /* Two shadows: a tight one for the edge, a wide soft one for the lift. */
  --lift: 0 1px 2px rgba(27, 26, 23, 0.05), 0 3px 10px rgba(27, 26, 23, 0.045);
  --lift-hover: 0 2px 4px rgba(27, 26, 23, 0.06), 0 8px 20px rgba(27, 26, 23, 0.07);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shell: 940px;
  --gap: 14px;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

body {
  font-family: var(--font);
  font-optical-sizing: auto;
  font-feature-settings: 'cv05' 1, 'cv08' 1, 'ss03' 1, 'calt' 1;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Nav ---------- */

nav {
  padding: 26px 0 0;
}

.nav-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  font-size: 15px;
  letter-spacing: -0.025em;
}

.wordmark-a {
  font-weight: 600;
  color: var(--ink);
}

.wordmark-b {
  font-weight: 400;
  color: var(--ink-mute);
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  font-size: 13px;
  color: var(--ink-mute);
  transition: color 0.18s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--ink);
}

/* ---------- Hero ---------- */

main {
  flex: 1;
}

.hero {
  text-align: center;
  padding-top: 92px;
  padding-bottom: 44px;
}

.hero-tight {
  padding-top: 84px;
  padding-bottom: 30px;
}

h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.lede {
  margin: 16px auto 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn-solid {
  background: #26251f;
  color: #f1efea;
}

.btn-solid:hover {
  background: #3a382f;
}

.btn-quiet {
  background: transparent;
  border-color: var(--line-firm);
  color: var(--ink-soft);
}

.btn-quiet:hover {
  background: rgba(27, 26, 23, 0.045);
  color: var(--ink);
}

.btn-wide {
  width: 100%;
  height: 42px;
  margin-top: 4px;
}

/* ---------- Index grid ---------- */

.index {
  padding-bottom: 64px;
  scroll-margin-top: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.grid-status {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 8px 8px 14px;
  box-shadow: var(--lift);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
    box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.card:hover {
  background: #f5f3ef;
  border-color: var(--card-line-hover);
  transform: translateY(-2px);
  box-shadow: var(--lift-hover);
}

.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  overflow: hidden;
  /* Fine diagonal hatch stands in for a screenshot. */
  background-color: var(--slot);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(27, 26, 23, 0.045) 0 1px,
    transparent 1px 7px
  );
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.card-meta {
  padding: 12px 6px 0;
}

.card-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.card-desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
}

.grid-count {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
}

.grid-count button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-firm);
  transition: color 0.18s var(--ease);
}

.grid-count button:hover {
  color: var(--ink);
}

/* ---------- Submit form ---------- */

.form-wrap {
  padding-bottom: 96px;
}

.submit-form {
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}

.optional {
  font-weight: 400;
  color: var(--ink-mute);
}

.field input {
  height: 38px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: border-color 0.18s var(--ease);
}

.field input::placeholder {
  color: var(--ink-ghost);
}

.field input:focus {
  outline: none;
  border-color: var(--line-firm);
}

.field input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.form-note {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
}

/* ---------- Footer ---------- */

footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  padding-top: 44px;
  text-align: center;
  overflow: hidden;
}

.foot-links {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.foot-links a {
  font-size: 13px;
  color: var(--ink-mute);
  transition: color 0.18s var(--ease);
}

.foot-links a:hover {
  color: var(--ink);
}

.foot-line {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}

.foot-line + .foot-line {
  margin-top: 4px;
}

.foot-dim {
  color: var(--ink-mute);
}

.foot-line a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line-firm);
  transition: text-decoration-color 0.18s var(--ease);
}

.foot-line a:hover {
  text-decoration-color: var(--ink);
}

/* Oversized wordmark, cropped at the baseline like a printed cover. */
.bigmark {
  margin-top: 30px;
  font-size: clamp(2.5rem, 17vw, 168px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.78;
  color: var(--ink-ghost);
  user-select: none;
  white-space: nowrap;
  text-align: center;
  padding-bottom: 0.04em;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 720px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 64px;
  }
}

@media (max-width: 460px) {
  .shell {
    padding: 0 18px;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .hero {
    padding-top: 52px;
  }
}

/* Below this the two-up cards get too small to read. */
@media (max-width: 340px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
