:root{
  --bg: #eef1f3;
  --ink: #3c4147;
  --accent: #103961;

  --col-max: 720px;
  --gutter: clamp(18px, 4vw, 44px);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Masthead */

.masthead{
  text-align: center;
  padding-top: 90px;
}

.site-title{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(58px, 9vw, 100px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.subtitle{
  font-family: "Playfair Display", serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  color: rgba(16,57,97,0.75);
  max-width: 680px;
  margin: 18px auto 16px;
}

/* Navigation */

.language-nav{
  display: inline-block;
  text-align: center;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(16,57,97,0.035);
  margin: 12px auto 44px;
}

.language-nav a{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: rgba(60,65,71,0.68);
  text-decoration: none;
}

.language-nav a:hover{
  text-decoration: underline;
  color: rgba(60,65,71,0.88);
}

.nav-sep{
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(60,65,71,0.55);
}

/* Main column */

.container{
  width: min(var(--col-max), calc(100% - (2 * var(--gutter))));
  margin: 0 auto;
  padding-bottom: 80px;
}

/* Dialogue list */

.dialogue-list{
  margin: 0;
  padding: 0;
}

.dialogue{
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 8px 0;              /* slightly increased */
}

.dialogue + .dialogue{
  margin-top: 14px;            /* more space between dialogues */
}

.entry{
  flex: 1;
}

/* Title */

.dialogue-title{
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.18;
  color: var(--ink);
  text-decoration: none;

  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 120ms ease;
  padding-bottom: 2px;
}

.dialogue-title:hover{
  background-size: 100% 1px;
}

/* Metadata + Ingredients */

.meta{
  margin-top: 8px;             /* space after title */
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(60,65,71,0.88);
  letter-spacing: 0.01em;
}

/* Tighten spacing between author line and ingredient line */
.meta + .meta{
  margin-top: 2px;
}

/* Initials */

.initials{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--accent);

  display: grid;
  grid-template-columns: auto auto;
  column-gap: 14px;
  row-gap: 4px;

  line-height: 1;
  margin-top: 7px;
}

/* Vertical break */

.language-break{
  height: 48px;
}

/* Tiny signature */

.sig{
  display: inline-block;
  margin-top: 56px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(60,65,71,0.55);
  text-decoration: none;
}

.sig:hover{
  color: rgba(60,65,71,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile */

@media (max-width: 520px){
  .masthead{ padding-top: 70px; }

  .subtitle{ font-size: 19px; }

  .language-nav{ margin-bottom: 36px; }

  .dialogue{
    padding: 6px 0;
    gap: 16px;
  }

  .dialogue + .dialogue{
    margin-top: 12px;
  }

  .dialogue-title{ font-size: 20px; }

  .meta{ font-size: 13px; }

  .initials{ font-size: 15px; }
}
