/* SIM Chef, página do jogo.
   As cores e a fonte são as da interface nova do jogo: creme, texto marrom quase preto, um
   verde só para a ação. A delicadeza vem do espaço, dos pesos leves e das linhas finas. */

:root {
  --bg: #fbf7f0;
  --panel: #f3ede2;
  --line: #e6ddcc;
  --text: #2b251e;
  --muted: #7a6e5e;
  --faint: #a39684;
  --green: #55693a;
  --green-dark: #475830;
  --on-green: #fffdfa;

  --wrap: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
  --space: clamp(88px, 11vw, 144px);

  /* linha fina que acompanha o texto, e não a caixa com o respiro lateral */
  --hairline: linear-gradient(var(--line), var(--line));

  /* as fontes de outras escritas só carregam na página do idioma delas */
  --font: 'Noto Sans', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans Thai', system-ui, -apple-system,
    'Segoe UI', sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}

h1,
h2 {
  font-weight: 500;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* escritas sem espaço entre palavras ou com traçado próprio */
:lang(ja) :is(p, dd, .plans li, figcaption) {
  word-break: auto-phrase;
}

:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(th)) h2 {
  letter-spacing: 0;
}

:lang(th) body,
body:lang(th) {
  line-height: 1.85;
}

/* ── Topo ── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
}

.top__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

/* o ícone do jogo ao lado do nome */
.mark {
  flex: none;
  width: 28px;
  height: 28px;
}

.footer .mark {
  width: 22px;
  height: 22px;
}

.top__link {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.top__link:hover {
  color: var(--text);
}

.lang {
  appearance: none;
  -webkit-appearance: none;
  max-width: 11rem;
  padding: 6px 26px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237a6e5e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--muted);
  font: 400 0.875rem/1.4 var(--font);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.lang:hover {
  border-color: #d6cab6;
  color: var(--text);
}

/* ── Abertura ── */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: center;
  padding-block: clamp(40px, 8vw, 104px) var(--space);
}

.kicker {
  font-size: 0.9375rem;
  color: var(--muted);
}

h1 {
  margin-block: 14px 24px;
  font-size: clamp(3rem, 2rem + 4.4vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 32rem;
  font-size: 1.1875rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-block-start: 36px;
}

.button {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--green);
  color: var(--on-green);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s;
}

.button:hover {
  background: var(--green-dark);
}

.button span {
  opacity: 0.72;
}

.note {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* a arte da cápsula da Steam, a mesma imagem que a pessoa vai encontrar na loja */
.keyart {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgb(43 37 30 / 0.08), 0 16px 40px -20px rgb(43 37 30 / 0.35);
}

/* ── Blocos ── */
.block {
  padding-block-end: var(--space);
}

.block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-block-end: 32px;
}

.block__head--stack {
  display: grid;
  justify-content: start;
}

.block__head--stack p {
  max-width: 34rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  margin-block-start: 32px;
}

.pillars > div {
  padding-block: 24px 28px;
  border-block-start: 1px solid var(--line);
}

.pillars dt {
  font-weight: 500;
  margin-block-end: 6px;
}

.pillars dd {
  color: var(--muted);
  max-width: 28rem;
}

/* ── Na tela ── */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-block-end: 20px;
  border-radius: 12px;
  background: var(--panel);
}

.tabs button {
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 500 0.9375rem/1.4 var(--font);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.tabs button:hover {
  color: var(--text);
}

.tabs button[aria-selected='true'] {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(43 37 30 / 0.08);
}

.stage {
  border-radius: 16px;
  background: var(--panel);
  padding: clamp(16px, 4vw, 48px) clamp(12px, 4vw, 48px) clamp(20px, 3vw, 32px);
}

.stage figure {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.stage a {
  cursor: zoom-in;
}

.stage img {
  max-height: 560px;
  width: auto;
}

.stage figcaption {
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
}

/* ── Pratos ── */
.dishes {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 36px 16px;
  padding: 0;
  list-style: none;
}

.dishes li {
  display: grid;
  grid-template-rows: auto 1fr auto; /* a dificuldade fica na mesma altura, mesmo com nome em duas linhas */
  justify-items: center;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
}

.dishes img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.dishes li > * {
  max-width: 100%;
  overflow-wrap: anywhere; /* nome longo sem espaço (katakana, alemão) quebra dentro da coluna */
}

.dishes small {
  margin-block-start: -4px;
  font-size: 0.75rem;
  color: var(--faint);
}

/* ── Planos ── */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  padding: 0;
  list-style: none;
}

.plans li {
  padding-block: 14px;
  border-block-start: 1px solid var(--line);
}

/* ── Andamento ── */
.closing {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px 72px;
  align-items: end;
  padding-block-start: 48px;
  background: var(--hairline) no-repeat center top / calc(100% - var(--gutter) * 2) 1px;
}

.closing h2 {
  margin-block-end: 16px;
}

.closing p {
  max-width: 34rem;
}

.closing__cta {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.closing__cta p {
  color: var(--muted);
}

/* ── Rodapé ── */
.footer {
  display: grid;
  gap: 18px;
  padding-block: 28px 40px;
  background: var(--hairline) no-repeat center top / calc(100% - var(--gutter) * 2) 1px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer .wordmark {
  margin-inline-end: 12px;
  color: var(--text);
  font-size: 0.9375rem;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.8125rem;
}

.langs a {
  color: var(--faint);
  text-decoration: none;
}

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

/* ── 404 ── */
.notfound {
  display: grid;
  gap: 8px;
  padding-block: 20vh;
}

.notfound h1 {
  margin-block: 4px 12px;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  letter-spacing: -0.02em;
}

/* ── Telas estreitas ── */
@media (max-width: 860px) {
  .intro,
  .closing {
    grid-template-columns: 1fr;
  }

  .keyart {
    max-width: 560px;
  }

  .pillars,
  .plans {
    grid-template-columns: 1fr;
  }

  .dishes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .top__link {
    display: none;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}

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