:root {
  --paper: #f3eadb;
  --paper-deep: #e9dcc4;
  --ink: #2a1c13;
  --ink-soft: #5a4637;
  --muted: #8b7562;
  --madder: #8c2f1f;
  --saffron: #b07f2c;
  --rule: #d5c3a5;

  --serif-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --serif-text: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;

  --tabs-h: 3.1rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  margin: 0;
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 17px;
  line-height: 1.45;
  font-variant-numeric: lining-nums;
}

body > * {
  max-width: 34rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ---------- Masthead ---------- */

.masthead {
  text-align: center;
  padding-block: 1.8rem 1.6rem;
}

.masthead__plaque {
  display: block;
  width: 6.5rem;
  margin: 0 auto 1.3rem;
  filter: drop-shadow(0 1px 2px rgba(42, 28, 19, .2));
}

.masthead__place {
  margin: 0 0 .9rem;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__name {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(3rem, 15vw, 4.1rem);
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--ink);
}

.masthead__konak {
  margin: .35rem 0 1.1rem;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .5em;
  padding-left: .5em; /* optically balance the tracking */
  text-transform: uppercase;
  color: var(--madder);
}

.ornament {
  display: block;
  width: 9.5rem;
  height: auto;
  margin: 0 auto;
  fill: none;
  stroke: var(--saffron);
  stroke-width: 1;
}
.ornament circle { fill: var(--saffron); stroke: none; }

.masthead__badge {
  margin: 1.1rem 0 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.masthead__badge-en {
  margin: .05rem 0 0;
  font-style: italic;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------- Category tabs ---------- */

.tabs {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  height: var(--tabs-h);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--paper);
  border-block: 1px solid var(--rule);
  white-space: nowrap;
  max-width: none;
  padding-inline: max(1.25rem, calc((100vw - 34rem) / 2 + 1.25rem));
}
.tabs::-webkit-scrollbar { display: none; }

.tabs__link {
  position: relative;
  padding-block: .4rem;
  font-size: .95rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.tabs__link.is-active { color: var(--madder); }
.tabs__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--madder);
}
.tabs__link--story { font-style: italic; }
.tabs__sep { color: var(--saffron); }

/* ---------- Menu ---------- */

.menu { padding-block: .5rem 1rem; }

.cat {
  padding-top: 2.4rem;
  scroll-margin-top: calc(var(--tabs-h) + env(safe-area-inset-top, 0px));
}

.cat__title {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--madder);
  text-align: center;
}
.cat__title::before,
.cat__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.cat__title span { max-width: 80%; }

.cat__en {
  margin: .2rem 0 1.1rem;
  text-align: center;
  font-style: italic;
  font-size: .88rem;
  color: var(--muted);
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item { padding-block: .62rem; }
.item + .item { border-top: 1px solid rgba(213, 195, 165, .55); }

.item__row {
  display: flex;
  align-items: baseline;
  gap: .45rem;
}

.item__name {
  font-weight: 500;
  font-size: 1.06rem;
  line-height: 1.25;
}

.item__leader {
  flex: 1;
  min-width: 1rem;
  border-bottom: 1px dotted var(--muted);
  transform: translateY(-.28em);
  opacity: .7;
}

.item__price {
  font-weight: 600;
  font-size: 1.04rem;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.item__price small {
  font-size: .78em;
  font-weight: 500;
  color: var(--ink-soft);
}

.item__en {
  margin: .08rem 0 0;
  font-style: italic;
  font-size: .9rem;
  color: var(--ink-soft);
}

.item__desc {
  margin: .3rem 0 0;
  font-size: .86rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.item__desc-en {
  margin: .1rem 0 0;
  font-style: italic;
  font-size: .8rem;
  line-height: 1.38;
  color: var(--muted);
}

/* rakı bottle sizes */
.sizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .3rem;
  margin: .5rem 0 0;
}
.sizes__cell {
  padding: .35rem .2rem .3rem;
  text-align: center;
  background: rgba(233, 220, 196, .55);
}
.sizes dt {
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.sizes dd { margin: 0; }
.sizes .item__price { font-size: .95rem; }

/* Bar divider */
.group {
  margin-top: 3.4rem;
  padding-block: 1.6rem;
  text-align: center;
  border-block: 1px solid var(--rule);
  background:
    linear-gradient(var(--rule), var(--rule)) center 6px / 100% 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) center calc(100% - 6px) / 100% 1px no-repeat;
}
.group__name {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1;
}
.group__note {
  margin: .5rem 0 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--madder);
}
.group__note-en {
  margin: .1rem 0 0;
  font-style: italic;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------- Story ---------- */

.story {
  margin-top: 3.5rem;
  padding-block: 2.2rem 1rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--tabs-h) + env(safe-area-inset-top, 0px));
}

.kicker {
  margin: 0;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--madder);
}
.kicker span {
  display: block;
  margin-top: .2rem;
  letter-spacing: 0;
  text-transform: none;
  font-style: italic;
  font-size: .82rem;
  color: var(--muted);
}

.story__title {
  margin: .7rem 0 1.2rem;
  text-align: center;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.05;
}

.story p:not(.kicker) {
  margin: 0 0 .9rem;
  font-size: .98rem;
  line-height: 1.6;
  hyphens: auto;
}
.story__photo {
  margin: 0 0 1.5rem;
}
.story__photo img {
  display: block;
  width: 100%;
  padding: .45rem;
  background: #fbf6ec;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 3px rgba(42, 28, 19, .12);
}
.story__photo figcaption {
  margin-top: .55rem;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-soft);
}
.story__photo figcaption span {
  display: block;
  font-style: italic;
  font-size: .76rem;
  color: var(--muted);
}

.story__lead::first-letter {
  float: left;
  margin: .18rem .45rem 0 0;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 3.3rem;
  line-height: .8;
  color: var(--madder);
}

.story__en {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px dotted var(--rule);
}
.story .story__en p {
  font-style: italic;
  font-size: .88rem;
  color: var(--ink-soft);
}

/* ---------- Stay ---------- */

.stay {
  margin-top: 1.5rem;
  padding-block: 2rem 2.2rem;
  text-align: center;
  background: var(--paper-deep);
  max-width: 34rem;
}

.stay__plaque {
  display: block;
  width: 72%;
  max-width: 17rem;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 2px 3px rgba(42, 28, 19, .18));
}

.stay__title {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
}
.stay__en {
  margin: .15rem 0 0;
  font-style: italic;
  font-size: .88rem;
  color: var(--muted);
}
.stay__text {
  margin: .9rem auto 1.3rem;
  max-width: 26rem;
  font-size: .95rem;
  color: var(--ink-soft);
}

.stay__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}

.btn {
  display: inline-block;
  min-width: 8.5rem;
  padding: .6rem 1.1rem;
  font-size: .95rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--paper);
  background: var(--madder);
  border: 1px solid var(--madder);
}
.btn--ghost {
  color: var(--madder);
  background: transparent;
}

/* ---------- Footer ---------- */

.colophon {
  padding-block: 2.4rem 3rem;
  text-align: center;
  font-size: .92rem;
  color: var(--ink-soft);
}
.colophon p { margin: .45rem 0; }
.colophon a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.colophon__name {
  margin-top: 1.1rem !important;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
}
.colophon__note {
  margin-top: 1.4rem !important;
  font-size: .8rem;
  color: var(--muted);
}
.colophon__note span { font-style: italic; }
