:root {
  --page-bg: #c8d9d7;
  --paper: #f8faf4;
  --paper-dark: #e8efe6;
  --ink: #253136;
  --muted: #59686b;
  --border: #8ba2a5;
  --title: #28536b;
  --accent: #b85f32;
  --link: #1f5f92;
  --green: #587041;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font: 14px/1.55 Georgia, "Times New Roman", serif;
  background:
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    var(--page-bg);
  background-size: 22px 22px;
}

a {
  color: var(--link);
}

a:hover {
  color: #3b7383;
}

code {
  padding: 1px 4px;
  border: 1px solid #bacbcd;
  background: #eef6e8;
  font-family: "Courier New", Courier, monospace;
  font-size: .95em;
}

pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px dashed var(--border);
  background: #eef6e8;
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.page-shell {
  width: min(980px, calc(100% - 24px));
  margin: 18px auto;
  border: 1px solid #789195;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(61, 45, 28, .18);
}

.blogger-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 5px 12px;
  color: #fff7df;
  background: linear-gradient(#c56d35, #8f4d2a);
  border-bottom: 1px solid #704026;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.blogger-bar a {
  color: #fff7df;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.7);
}

.blogger-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #8f4d2a;
  background: #fff7df;
  border-radius: 3px;
  font: 700 17px/1 Arial, Helvetica, sans-serif;
}

.masthead {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: center;
  padding: 26px 28px;
  background: linear-gradient(180deg, #f8faf4, #dfecea);
  border-bottom: 4px double var(--border);
}

.masthead-art {
  width: 132px;
  height: auto;
  border: 1px solid #8ba2a5;
  background: #fff;
}

.date-line {
  margin: 0 0 4px;
  color: var(--green);
  font: 700 12px Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
  color: var(--title);
}

.tagline {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: 24px;
  padding: 24px;
}

.posts {
  display: grid;
  gap: 22px;
}

.post {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
}

.post-date {
  height: 64px;
  text-align: center;
  border: 1px solid var(--border);
  background: #e8efe6;
  color: var(--title);
  font-family: Arial, Helvetica, sans-serif;
}

.post-date span {
  display: block;
  padding-top: 8px;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.post-date small {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0;
}

.post-body {
  padding-bottom: 20px;
  border-bottom: 1px solid #c8d7d8;
}

.post-body h2 {
  margin-bottom: 10px;
  color: #28536b;
  font-size: 25px;
  line-height: 1.15;
}

.notice {
  padding: 12px;
  border-left: 5px solid var(--accent);
  background: #edf5e9;
}

.note-list {
  margin: 14px 0 0;
  padding-left: 22px;
}

.note-list li + li {
  margin-top: 6px;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.operator-card {
  min-height: 142px;
  padding: 12px;
  border: 1px solid #b7c8c9;
  border-radius: 4px;
  background: #fffdf6;
}

.operator-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.operator-card p {
  min-height: 44px;
  margin-bottom: 12px;
}

.copy-button {
  min-width: 62px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #556d4a;
  border-radius: 3px;
  color: #fff9e7;
  background: linear-gradient(#7b8f52, #526a32);
  font: 700 12px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: linear-gradient(#8d9f66, #5c7838);
}

.copy-button.copied {
  background: linear-gradient(#326f80, #244d5d);
}

.recipe-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf6;
}

.recipe-table th,
.recipe-table td {
  padding: 9px;
  border: 1px solid #b7c8c9;
  vertical-align: top;
}

.recipe-table th {
  text-align: left;
  color: #fff7df;
  background: #28536b;
  font-family: Arial, Helvetica, sans-serif;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.widget {
  padding: 13px;
  border: 1px solid var(--border);
  background: var(--paper-dark);
}

.widget h2 {
  margin: -13px -13px 10px;
  padding: 8px 10px;
  color: #fff7df;
  background: #6f7d4d;
  font: 700 14px Arial, Helvetica, sans-serif;
}

.widget ul {
  margin: 0;
  padding-left: 18px;
}

.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.labels a {
  padding: 3px 7px;
  border: 1px solid #a9bcbc;
  background: #f8faf4;
  text-decoration: none;
}

.archive-widget details {
  display: grid;
  gap: 6px;
}

.archive-widget a {
  display: block;
  margin-top: 6px;
}

.footer {
  padding: 16px 24px 22px;
  color: var(--muted);
  background: #dfecea;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .page-shell {
    width: calc(100% - 12px);
    margin: 6px auto;
  }

  .blogger-bar {
    flex-wrap: wrap;
  }

  .masthead,
  .layout,
  .post,
  .operator-grid {
    grid-template-columns: 1fr;
  }

  .masthead {
    padding: 18px;
  }

  .masthead-art {
    width: 112px;
  }

  .layout {
    padding: 16px;
  }

  .post-date {
    width: 64px;
  }

  .recipe-table,
  .recipe-table thead,
  .recipe-table tbody,
  .recipe-table tr,
  .recipe-table th,
  .recipe-table td {
    display: block;
  }

  .recipe-table thead {
    display: none;
  }

  .recipe-table tr {
    border: 1px solid #b7c8c9;
    border-bottom: 0;
  }

  .recipe-table td {
    border: 0;
    border-bottom: 1px solid #b7c8c9;
  }
}
