/* Tonkotsu Ramen Studio — shared styles */

:root {
  --bg: #14110f;
  --bg-raised: #1d1917;
  --line: #2f2824;
  --cream: #f4ece0;
  --cream-dim: #c9bdad;
  --cream-faint: #8d8076;
  --accent: #e8734a;
  --max: 46rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream-dim);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.mark {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
}

.site-head .name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

/* ---------- type ---------- */

h1 {
  color: var(--cream);
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

h2 {
  color: var(--cream);
  font-size: 1.12rem;
  letter-spacing: -0.005em;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  color: var(--cream);
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

p,
li {
  margin: 0 0 0.9rem;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

strong {
  color: var(--cream);
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.38em;
}

.lede {
  font-size: 1.1rem;
  color: var(--cream-dim);
}

.meta {
  font-size: 0.875rem;
  color: var(--cream-faint);
  margin-bottom: 2.5rem;
}

/* ---------- blocks ---------- */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.card :last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.94rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--cream-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-foot a {
  color: var(--cream-dim);
}

.lang-switch {
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.lang-switch a {
  color: var(--cream-dim);
}

@media (max-width: 34rem) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 2.5rem 1.15rem 4rem;
  }
  h1 {
    font-size: 1.6rem;
  }
}
