/* sashinka.com — base styles
   Kept the original Georgia/serif character; rebuilt the layout to be
   responsive (flex-based, stacks on narrow screens) and added focus
   states / a skip link for accessibility. */

:root {
  --text: #1a1a1a;
  --muted: #555;
  --link: #6b3f2a;      /* warm brown, close to the site's food/spice feel */
  --link-visited: #8a5a3d;
  --rule: #e2ddd3;
  --content-max: 760px;
}

* {
  box-sizing: border-box;
}

body {
  background: #fff;
  font-family: Georgia, Times, "Times New Roman", serif;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  padding: 0;
}

h1 { font-size: 1.6em; line-height: 1.25; margin: 0.4em 0 0.3em; }
h2 { font-size: 1.25em; margin: 1.3em 0 0.4em; }
h3 { font-size: 1.1em; margin: 1.1em 0 0.4em; }
h4 {
  font-weight: bold;
  font-size: 1.05em;
  text-transform: none;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover, a:focus { color: #000; }
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

table { border-collapse: collapse; }
td { font-size: 14px; padding: 2px 6px 2px 0; }

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

/* Skip link: hidden until focused, helps keyboard/screen-reader users
   jump straight past the nav to the recipe */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid var(--rule);
  z-index: 10;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---- Page shell ---- */
.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

#header {
  padding: 16px 0;
}
#header img {
  max-height: 120px;
  display: block;
}

/* Layout: sidebar nav + main content, side by side on wide screens,
   stacked on narrow ones. Replaces the old absolute positioning. */
.layout {
  display: flex;
  flex-direction: row-reverse; /* nav on the right, like the original */
  gap: 32px;
  align-items: flex-start;
}

#menu {
  font-size: 13px;
  width: 190px;
  flex: 0 0 190px;
}
#menu h4 {
  margin-top: 1.4em;
}
#menu h4:first-child {
  margin-top: 0;
}
#menu a {
  display: inline-block;
  padding: 2px 0;
}

#content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: var(--content-max);
  line-height: 1.6;
}

/* Recipe-specific bits */
.hrecipe .photo {
  float: right;
  width: 240px;
  max-width: 45%;
  height: auto;
  border: 0;
  margin: 0 0 12px 16px;
  border-radius: 2px;
}

.hrecipe ul {
  padding-left: 1.3em;
}
.hrecipe li {
  margin-bottom: 0.5em;
}

.yield {
  font-style: italic;
  color: var(--muted);
}

.divider {
  display: block;
  margin: 24px auto;
  max-width: 300px;
}

footer.site-footer {
  margin-top: 32px;
  padding: 16px 0 32px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}

/* ---- Narrow screens: stack nav under content, drop the float ---- */
@media (max-width: 640px) {
  .layout {
    flex-direction: column;
  }
  #menu {
    width: 100%;
    flex: none;
    order: 2;
    border-top: 1px solid var(--rule);
    padding-top: 16px;
    margin-top: 16px;
  }
  #content {
    order: 1;
    max-width: 100%;
  }
  .hrecipe .photo {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
  }
}

/* Respect users who've asked for less motion, in case animation is
   added later */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Legacy class kept for any other pages still referencing it */
h1.fn {
  font-size: 1.6em;
}
