/*
Theme Name: A Little Stupid Fieldnotes
Theme URI: https://alittlestupid.com/
Description: A quiet grayscale field-notes refresh for a little stupid blog. Child theme of Hemingway Reloaded.
Author: Hermes Agent
Template: hemingway_reloaded
Version: 0.1.2
Text Domain: alittlestupid-fieldnotes
*/

:root {
  --als-paper: #f4f3ef;
  --als-mist: #deded8;
  --als-lichen: #b9bbb1;
  --als-stone: #8d8e87;
  --als-bark: #44433f;
  --als-ink: #181816;
}

* { box-sizing: border-box; }

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.72), transparent 30rem),
    linear-gradient(180deg, #efeee9 0%, var(--als-mist) 100%);
  color: var(--als-bark);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: .003em;
}

a { color: var(--als-ink); text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .18em; }
a:hover { color: #000; background: rgba(185,187,177,.35); }

#header, #wrapper, #primary, #ancillary, #footer { max-width: 1120px; }
#header, #wrapper, #primary, #footer { margin-left: auto; margin-right: auto; }

#header {
  background: transparent !important;
  padding: 4.5rem 2rem 2.25rem;
  border-bottom: 1px solid rgba(68,67,63,.18);
}

#header h1, #header .blog-title, #header #blog-title, #header h1 a {
  color: var(--als-ink) !important;
  font-size: clamp(2.4rem, 7vw, 5.8rem) !important;
  line-height: .92 !important;
  letter-spacing: -.07em;
  font-weight: 400 !important;
  text-decoration: none;
}

#header .description, #blog-description {
  color: var(--als-bark);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .95rem;
  letter-spacing: .02em;
  max-width: 34rem;
  margin-top: 1rem;
}

#wrapper {
  background: rgba(244,243,239,.88);
  border: 1px solid rgba(68,67,63,.14);
  box-shadow: 0 1.5rem 5rem rgba(24,24,22,.08);
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 3rem);
}

#primary {
  width: 100% !important;
}

#primary .primary,
#primary .secondary,
#primary.twocol-stories .story,
#primary.onecol-stories .primary,
#primary.onecol-stories .secondary {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

#primary.twocol-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 4rem);
}

.story,
.post,
.hentry {
  border-top: 1px solid rgba(68,67,63,.16);
  padding-top: 1.1rem;
}

.story h2,
.post h2,
h1, h2, h3 {
  color: var(--als-ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.025em;
}

.story h2,
.post h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  margin-bottom: .55rem;
}

.story h2 a,
.post h2 a { text-decoration: none; }
.story h2 a:hover,
.post h2 a:hover { text-decoration: underline; background: transparent; }

.meta, .details, .posted, .comment-head .details {
  color: var(--als-stone) !important;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .8rem !important;
  letter-spacing: .035em;
}

p { line-height: 1.72; margin: .85em 0 1.1em; }
blockquote {
  border-left: 1px solid var(--als-stone);
  color: var(--als-bark);
  font-style: italic;
  padding-left: 1.25rem;
}

.als-code-block {
  background: #1d1d1b;
  border: 1px solid rgba(24,24,22,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 .75rem 2rem rgba(24,24,22,.08);
  color: #f3f1ea;
  margin: 1.5rem 0;
  overflow: hidden;
}

.als-code-block figcaption {
  align-items: center;
  background: #2a2a27;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #c9c7bd;
  display: flex;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .72rem;
  justify-content: space-between;
  letter-spacing: .08em;
  margin: 0;
  padding: .45rem .65rem;
  text-transform: lowercase;
}

.als-code-block pre {
  background: transparent;
  border: 0;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .86rem;
  line-height: 1.6;
  margin: 0;
  overflow-x: auto;
  padding: .9rem 1rem 1rem;
  tab-size: 4;
  white-space: pre;
  width: 100%;
}

.als-code-block code {
  background: transparent;
  color: inherit;
  font: inherit;
}

.als-copy-code {
  background: transparent !important;
  border: 1px solid rgba(243,241,234,.35) !important;
  color: #f3f1ea !important;
  cursor: pointer;
  font: inherit;
  letter-spacing: .04em;
  padding: .18rem .5rem;
}

.als-copy-code:focus,
.als-copy-code:hover {
  background: #f3f1ea !important;
  color: #1d1d1b !important;
  outline: none;
}

#ancillary {
  background: rgba(222,222,216,.62) !important;
  border-top: 1px solid rgba(68,67,63,.16);
  color: var(--als-bark);
  margin: 3rem auto 0;
  padding: 2rem;
}

#ancillary .block { width: auto !important; float: none !important; margin: 0 0 1.5rem !important; }
#ancillary h2, #ancillary h3 { font-size: 1rem; letter-spacing: .02em; }

#footer {
  color: var(--als-stone);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .8rem;
  padding: 2rem;
}

input, textarea, select {
  border: 1px solid rgba(68,67,63,.25) !important;
  background: rgba(255,255,255,.62) !important;
  color: var(--als-ink);
  font: inherit;
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  #header { padding: 3rem 1rem 1.25rem; }
  #wrapper { margin: 1rem; padding: 1.15rem; }
  #primary.twocol-stories { display: block; }
  .story, .post, .hentry { margin-bottom: 2.25rem !important; }
  #ancillary { margin: 1rem; padding: 1rem; }
}