/* GoBeyond Studio — shared styles */

:root {
  --paper: #f5f6fa;      /* cool white page */
  --ink: #161a26;        /* text */
  --muted: #5b6273;      /* secondary text */
  --line: #dde0ea;       /* borders */
  --stage: #0d1430;      /* projection screen */
  --lumen: #a9c1ff;      /* projector light accent */
  --link: #2f55d4;
  --max: 1080px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", "Noto Sans TC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1220;
    --ink: #eef0f7;
    --muted: #a3a9ba;
    --line: #262b3d;
    --stage: #060a1c;
    --link: #a9c1ff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
}

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

a { color: var(--link); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--lumen);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand svg { width: 28px; height: 28px; }

.site-nav { display: flex; gap: 24px; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Type scale */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
  margin: 20px 0 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 88px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--ink);
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }

/* The projection screen: the one memorable element */
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(169, 193, 255, 0.16), transparent 70%),
    var(--stage);
  border-radius: 6px;
  display: grid;
  place-items: center;
  padding: 6% 8%;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 30px 60px -30px rgba(13, 20, 48, 0.55);
}

.screen p {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1rem, 2.3vw, 1.6rem);
  line-height: 1.45;
  text-shadow: 0 0 24px rgba(169, 193, 255, 0.35);
}

.screen .line { display: block; opacity: 0; animation: lineIn 0.9s ease forwards; }
.screen .line:nth-child(2) { animation-delay: 0.6s; }
.screen .line:nth-child(3) { animation-delay: 1.2s; }

.screen cite {
  display: block;
  margin-top: 1.2em;
  font-style: normal;
  font-size: 0.6em;
  font-weight: 400;
  color: var(--lumen);
  text-shadow: none;
}

.screen-label {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

@keyframes lineIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen .line { animation: none; opacity: 1; }
}

/* Sections */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { max-width: 20em; }
.section-intro { color: var(--muted); max-width: 36em; margin: 12px 0 0; }

.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}

.product:nth-of-type(even) .product-media { order: 2; }

.product-media img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.product p { color: var(--muted); margin: 12px 0 0; max-width: 30em; }

.more {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
}

/* About */
.prose { max-width: 38em; }
.prose p { margin: 0 0 1.1em; }

.verse {
  margin: 48px 0;
  padding: 32px 0 32px 28px;
  border-left: 3px solid var(--lumen);
  max-width: 34em;
}

.verse p {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  font-weight: 500;
}

.verse cite { display: block; margin-top: 12px; font-style: normal; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 48px 0 0;
  padding: 0;
}

.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 4px 0 0; font-weight: 600; }

.wide-photo { margin: 56px 0 0; }
.wide-photo img { width: 100%; border-radius: 6px; }
.wide-photo figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

/* Page header for inner pages */
.page-head { padding: 64px 0 24px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 88px;
}

form { display: grid; gap: 18px; }

label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }

input, textarea {
  font: inherit;
  font-weight: 400;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

input:focus, textarea:focus { border-color: var(--ink); }

textarea { min-height: 160px; resize: vertical; }

form .btn { justify-self: start; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 28px;
  padding-bottom: 28px;
}

/* Mobile */
@media (max-width: 820px) {
  .hero, .product, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 0 64px; }
  .product:nth-of-type(even) .product-media { order: 0; }
  .section { padding: 64px 0; }
  .site-nav { gap: 14px; font-size: 0.95rem; }
}
