/* Toasty Cove site styles. Colours come from the logo:
   sea teals, toast gold, butter, crust brown.
   Sizes are fluid: they grow on big screens so the page never looks zoomed out. */
:root {
  --deep: #0E3F4B;
  --sea: #145F6F;
  --midsea: #17566A;
  --cliff: #0A2E37;
  --wave: #A8D8DF;
  --toast: #F2C36B;
  --butter: #FCE8A0;
  --crust: #6E3A17;
  --crust-2: #4A2510;
  --crust-text: #8A4B1E;
  --ground: #EEF3F5;
  --ink: #2A1A10;
  --soft: #DDEEF1;
  --accent: var(--toast);
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid scale */
  --text: clamp(17px, 0.35vw + 14px, 21px);
  --lead: clamp(19px, 0.6vw + 14px, 25px);
  --small: clamp(13px, 0.2vw + 11px, 16px);
  --h1: clamp(64px, 10vw, 184px);
  --h2: clamp(44px, 5vw, 92px);
  --h3: clamp(26px, 1.4vw + 14px, 38px);
  --btn: clamp(17px, 0.3vw + 13px, 21px);
  --gap: clamp(32px, 3vw, 56px);
  --section: clamp(80px, 9vw, 168px);
  --wrap: 1440px;
  --pad: clamp(18px, 4vw, 64px);
  --radius: clamp(24px, 2vw, 36px);
}

body { margin: 0; background: var(--ground); }

.tc-site { font-family: var(--body); font-size: var(--text); color: var(--ink); background: var(--ground); line-height: 1.55; overflow-x: hidden; }
.tc-site *, .tc-site *::before, .tc-site *::after { box-sizing: border-box; }
.tc-site a { color: var(--sea); }
.tc-site a:hover { color: var(--deep); }
.tc-site img { max-width: 100%; }

.tc-wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); width: 100%; }
.tc-stack { display: flex; flex-direction: column; gap: var(--gap); }
.tc-stack--tight { gap: clamp(18px, 1.4vw, 28px); }
.tc-stack--xs { gap: 10px; }
.tc-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tc-row--center { justify-content: center; }
.tc-row--left { justify-content: flex-start; }
.tc-row--right { justify-content: flex-end; }
.tc-row--chips { gap: 12px; }
.tc-pre { white-space: pre-line; }
.tc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.tc-eyebrow { margin: 0; font-weight: 800; font-size: var(--small); letter-spacing: .18em; text-transform: uppercase; }
.tc-eyebrow--crust { color: var(--crust-text); }
.tc-eyebrow--butter { color: var(--butter); }
.tc-h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: var(--h2); line-height: 1; color: var(--deep); letter-spacing: .005em; }
.tc-h2--light { color: #fff; }
.tc-h2--ink { color: var(--ink); }
.tc-h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: var(--h3); line-height: 1.1; color: var(--deep); }
.tc-h3--light { color: #fff; }
.tc-lead { margin: 0; font-size: var(--lead); line-height: 1.55; max-width: 62ch; }
.tc-lead--soft { color: var(--soft); }
.tc-head .tc-lead { margin-inline: auto; }
.tc-note { margin: 0; text-align: center; font-size: var(--text); color: #5A3A22; }
.tc-link { font-weight: 800; font-size: var(--btn); }

/* Buttons: pills with a crust outline and a baked shadow */
.tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: clamp(52px, 3.4vw, 64px); padding: 0 clamp(24px, 2vw, 36px); border-radius: 999px; font-family: var(--body); font-weight: 800; font-size: var(--btn); text-decoration: none; border: 3px solid var(--crust); box-shadow: 0 6px 0 var(--crust); transition: transform .12s ease, box-shadow .12s ease; cursor: pointer; }
.tc-btn:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--crust); }
.tc-btn:focus-visible { outline: 3px solid var(--wave); outline-offset: 3px; }
.tc-site .tc-btn--accent { background: var(--accent); color: var(--ink); }
.tc-site .tc-btn--butter { background: var(--butter); color: var(--ink); }
.tc-site .tc-btn--light { background: #fff; color: var(--deep); border-color: var(--cliff); box-shadow: 0 6px 0 var(--cliff); }
.tc-site .tc-btn--dark { background: var(--deep); color: #fff; border-color: var(--cliff); box-shadow: 0 6px 0 var(--cliff); }
.tc-site .tc-btn--outline { background: #fff; color: var(--ink); }
.tc-site .tc-btn--ghost { background: transparent; color: #fff; border-color: var(--wave); box-shadow: none; }
.tc-btn--sm { min-height: 48px; padding: 0 22px; font-size: clamp(16px, .2vw + 13px, 18px); box-shadow: 0 4px 0 var(--crust); }

/* Placeholder for images that are not added yet */
.tc-ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; border: 3px dashed #9A5426; background: var(--butter); color: var(--crust); font-weight: 800; }

/* Hero: full screen. Sky with the text on top, the cove art below it,
   so the text never sits on the artwork. */
.tc-hero { position: relative; background: var(--deep); color: #fff; overflow: hidden; display: flex; flex-direction: column; min-height: min(100svh, 1200px); }
.tc-hero__sky { position: absolute; inset: 0; pointer-events: none; }
.tc-hero__sky span { position: absolute; background: var(--butter); opacity: .9; }
.tc-nav { position: relative; z-index: 2; padding-block: clamp(18px, 1.8vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.tc-site .tc-nav__brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-family: var(--display); font-size: clamp(26px, 1.2vw + 14px, 36px); letter-spacing: .02em; }
.tc-nav__brand img { width: clamp(52px, 3.6vw, 68px); height: auto; aspect-ratio: 1; border-radius: 16px; object-fit: cover; display: block; }
.tc-nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(20px, 2vw, 40px); font-weight: 800; font-size: clamp(16px, .3vw + 13px, 20px); }
.tc-site .tc-nav__links > a:not(.tc-btn) { color: #fff; text-decoration: none; padding-block: 10px; }
.tc-site .tc-nav__links > a:not(.tc-btn):hover { color: var(--butter); }
.tc-hero__body { position: relative; z-index: 2; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(16px, 1.6vw, 28px); text-align: center; padding-block: clamp(24px, 4vw, 72px) clamp(16px, 2vw, 32px); }
.tc-hero__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: var(--h1); line-height: .9; color: #fff; text-shadow: 0 .06em 0 var(--cliff); }
.tc-hero__sub { margin: 0; font-size: clamp(19px, .9vw + 12px, 30px); line-height: 1.45; max-width: 34ch; color: #fff; }
.tc-hero__body .tc-row { margin-top: 8px; }
.tc-hero__land { position: relative; z-index: 1; display: block; width: 100%; height: clamp(220px, 30vw, 540px); flex-shrink: 0; }

.tc-hero--photo { min-height: min(100svh, 1100px); }
.tc-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,46,55,.75) 0%, rgba(10,46,55,.35) 45%, rgba(10,46,55,.75) 100%); }
.tc-hero__fade { position: relative; z-index: 1; height: 80px; }

/* Sections */
.tc-section { position: relative; padding: var(--section) 0; }
.tc-section--flush { padding-top: 0; }
.tc-section--white { background: #fff; }
.tc-section--plain { background: transparent; }
.tc-section--dark { background: var(--deep); color: #fff; }
.tc-section--waves { padding: calc(var(--section) + 40px) 0; }
.tc-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.tc-head--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; text-align: left; }
.tc-wave { position: absolute; left: 0; width: 100%; height: clamp(40px, 4vw, 80px); display: block; }
.tc-wave--top { top: -1px; }
.tc-wave--bottom { bottom: -1px; }

.tc-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(32px, 4vw, 80px); align-items: center; }
.tc-split--top { align-items: start; }
.tc-grid { display: grid; gap: clamp(20px, 2vw, 36px); }
.tc-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.tc-grid--5 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: clamp(16px, 1.4vw, 28px); }
.tc-grid--shots { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: clamp(14px, 1.4vw, 24px); }

/* Featured game: big poster frame like a game's key art */
.tc-section .tc-split:has(.tc-teaser) { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.tc-teaser { position: relative; aspect-ratio: 16 / 10; border-radius: 34% 34% var(--radius) var(--radius) / 22% 22% var(--radius) var(--radius); background: var(--sea); border: clamp(6px, .6vw, 10px) solid var(--crust); box-shadow: 0 12px 0 var(--crust-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #fff; text-align: center; padding: 24px; overflow: hidden; }
.tc-teaser__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-teaser__play { position: relative; width: clamp(80px, 6vw, 112px); height: clamp(80px, 6vw, 112px); border-radius: 999px; background: var(--accent); border: 4px solid var(--crust); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 0 var(--crust); }
.tc-teaser__label { position: relative; font-weight: 800; font-size: var(--text); }
.tc-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-tag { background: #fff; color: var(--deep); border: 2px solid var(--deep); font-weight: 800; font-size: var(--small); letter-spacing: .06em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; }
.tc-tag--dark { background: var(--deep); color: #fff; }
.tc-game-name { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 4.6vw, 88px); line-height: .95; color: var(--deep); }

/* Screenshots */
.tc-shot { margin: 0; }
.tc-shot__img { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); object-fit: cover; display: flex; border: 4px solid var(--crust); box-shadow: 0 8px 0 var(--crust); }
.tc-shot__img.tc-ph { background: #fff; border-style: dashed; box-shadow: none; }

/* Toast cards: toast on top, sea below, like the logo */
.tc-toast { border: clamp(6px, .5vw, 8px) solid var(--crust); border-radius: 40% 40% var(--radius) var(--radius) / 20% 20% var(--radius) var(--radius); box-shadow: 0 10px 0 var(--crust-2); overflow: hidden; display: flex; flex-direction: column; background: var(--sea); }
.tc-toast__top { background: var(--toast); padding: clamp(40px, 3vw, 56px) clamp(24px, 2vw, 36px) clamp(24px, 2vw, 32px); }
.tc-toast__img { width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; object-fit: cover; display: flex; }
.tc-toast__sea { color: #fff; padding: clamp(24px, 2vw, 36px) clamp(24px, 2vw, 36px) clamp(30px, 2.4vw, 44px); display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; flex-grow: 1; }
.tc-toast__sea p { margin: 0; font-size: var(--text); line-height: 1.5; }

/* Fair Play Promise */
.tc-promise { background: var(--midsea); border: 3px solid var(--wave); border-radius: 46% 54% var(--radius) var(--radius) / 30px 30px var(--radius) var(--radius); padding: clamp(28px, 2.2vw, 40px) clamp(22px, 1.8vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.tc-promise p { margin: 0; font-size: var(--text); line-height: 1.5; color: var(--soft); }
.tc-promise__n { width: clamp(48px, 3.4vw, 60px); height: clamp(48px, 3.4vw, 60px); border-radius: 16px; background: var(--butter); color: var(--ink); border: 3px solid var(--crust); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: clamp(22px, 1.4vw, 30px); transform: rotate(-6deg); }
.tc-promise__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 1vw + 14px, 32px); line-height: 1.1; }
.tc-closing { margin: 0; text-align: center; font-family: var(--display); font-size: clamp(30px, 2.6vw, 52px); color: var(--butter); }

/* Studio */
.tc-chip { color: var(--ink); border: 3px solid var(--crust); font-weight: 800; font-size: var(--text); padding: 8px 20px; border-radius: 999px; }
.tc-chip--toast { background: var(--toast); }
.tc-chip--butter { background: var(--butter); }
.tc-chip--white { background: #fff; }
.tc-chip--wave { background: var(--wave); color: var(--deep); border-color: var(--sea); }
.tc-card { background: #fff; border: 4px solid var(--crust); border-radius: var(--radius); padding: clamp(28px, 3vw, 52px); box-shadow: 0 10px 0 var(--crust); }
.tc-timeline { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: clamp(22px, 2vw, 34px); }
.tc-timeline li { position: relative; padding-left: 44px; display: flex; flex-direction: column; gap: 4px; font-size: var(--text); }
.tc-timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 3px solid var(--crust); transform: rotate(12deg); box-sizing: border-box; }
.tc-timeline li.is-done::before { background: var(--toast); }
.tc-timeline li.is-later::before { border-style: dashed; }
.tc-timeline strong { font-family: var(--display); font-weight: 400; font-size: clamp(22px, .8vw + 14px, 30px); }

/* Devlog */
.tc-site .tc-post { text-decoration: none; color: var(--ink); background: #fff; border: 4px solid var(--crust); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 0 var(--crust); transition: transform .12s ease, box-shadow .12s ease; }
.tc-site .tc-post:hover { color: var(--ink); transform: translateY(3px); box-shadow: 0 5px 0 var(--crust); }
.tc-post__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: flex; }
.tc-post__img.tc-ph { background: var(--sea); color: var(--butter); border: 0; }
.tc-post__body { padding: clamp(22px, 1.8vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.tc-post__tag { font-weight: 800; font-size: var(--small); letter-spacing: .08em; text-transform: uppercase; color: var(--crust-text); }
.tc-post__title { font-family: var(--display); font-weight: 400; font-size: var(--h3); line-height: 1.1; }

/* Newsletter: shaped like the logo */
.tc-news { max-width: 1180px; margin: 0 auto 24px; border: clamp(6px, .6vw, 10px) solid var(--crust); border-radius: 30% 30% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); box-shadow: 0 12px 0 var(--crust-2); overflow: hidden; }
.tc-news__top { background: var(--toast); padding: clamp(56px, 6vw, 104px) var(--pad) clamp(28px, 2.4vw, 44px); display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.tc-news__sea { background: var(--sea); padding: clamp(28px, 2.6vw, 48px) var(--pad) clamp(36px, 3vw, 56px); display: flex; flex-direction: column; gap: 20px; align-items: center; }
.tc-news__form { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; width: 100%; max-width: 680px; }
.tc-news__form input { flex: 1 1 260px; min-height: clamp(54px, 3.6vw, 66px); padding: 0 24px; border-radius: 999px; border: 3px solid var(--cliff); font-family: var(--body); font-size: var(--btn); background: #fff; color: var(--ink); }

/* Footer */
.tc-footer { position: relative; background: var(--cliff); color: var(--soft); padding: clamp(96px, 8vw, 140px) 0 48px; margin-top: clamp(72px, 6vw, 120px); font-size: var(--text); }
.tc-footer__top { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.tc-footer__brand { display: flex; align-items: center; gap: 22px; }
.tc-footer__brand img { width: clamp(88px, 7vw, 120px); height: auto; aspect-ratio: 1; border-radius: 26px; object-fit: cover; display: block; }
.tc-footer__brand div { display: flex; flex-direction: column; gap: 4px; }
.tc-footer__name { font-family: var(--display); font-size: clamp(30px, 2.2vw, 44px); color: #fff; }
.tc-footer__bottom { border-top: 2px solid var(--midsea); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: var(--small); }
.tc-footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 700; font-size: var(--text); }
.tc-site .tc-footer__links a { color: var(--butter); }
.tc-site .tc-footer .tc-btn--accent { color: var(--ink); }

/* General blocks */
.tc-text { display: flex; flex-direction: column; gap: 24px; max-width: 980px; }
.tc-text--center { text-align: center; align-items: center; }
.tc-section--dark .tc-lead { color: var(--soft); }
.tc-figure { margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.tc-figure--narrow { max-width: 760px; }
.tc-figure--wide { max-width: 1200px; }
.tc-figure--full { max-width: var(--wrap); }
.tc-figure__img { width: 100%; border-radius: var(--radius); display: flex; min-height: 260px; object-fit: cover; }
.tc-figure figcaption { text-align: center; font-size: var(--small); color: #5A3A22; }
.tc-buttonblock { padding-block: 20px; }
.tc-spacer--small { height: clamp(24px, 2vw, 40px); }
.tc-spacer--medium { height: clamp(56px, 4vw, 88px); }
.tc-spacer--large { height: clamp(112px, 8vw, 176px); }

@media (max-width: 640px) {
  .tc-nav { justify-content: center; }
  .tc-nav__links { justify-content: center; }
  .tc-hero__land { height: 230px; }
  .tc-teaser { border-radius: 28% 28% 24px 24px / 18% 18% 24px 24px; }
  .tc-news { border-radius: 22% 22% 24px 24px / 14% 14% 24px 24px; }
  .tc-head--row { align-items: flex-start; }
  .tc-grid--shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .tc-btn, .tc-post { transition: none; }
}
