*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: clip;
  background-color: var(--dy26-ink);
  background-image:
    radial-gradient(circle at 18% 8%, rgba(104, 80, 50, 0.055), transparent 28rem),
    radial-gradient(circle at 82% 62%, rgba(104, 80, 50, 0.04), transparent 34rem),
    linear-gradient(rgba(5, 6, 6, 0.64), rgba(5, 6, 6, 0.64)),
    url("../images/texture-washi-noir.webp");
  background-position: center, center, center, top left;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, auto, 48rem 48rem;
  color: var(--dy26-ivory-soft);
  font-family: var(--dy26-font-sans);
  font-size: var(--dy26-type-body);
  line-height: var(--dy26-leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: 5rem 5rem;
  content: "";
  opacity: 0.16;
  pointer-events: none;
}

body.dy26-overlay-open {
  overflow: hidden;
}

::selection {
  background: var(--dy26-red);
  color: var(--dy26-ivory-strong);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--dy26-ivory-strong);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
[type="button"],
[type="submit"],
[type="reset"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure,
blockquote,
dl,
dd {
  margin: 0;
}

p,
ul,
ol {
  margin-block: 0 1.25em;
}

ul,
ol {
  padding-inline-start: 1.3em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.55em;
  color: var(--dy26-ivory);
  font-family: var(--dy26-font-display);
  font-weight: 500;
  line-height: var(--dy26-leading-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--dy26-type-h1);
}

h2 {
  font-size: var(--dy26-type-h2);
}

h3 {
  font-size: var(--dy26-type-h3);
}

h4 {
  font-size: 1.3rem;
}

small {
  font-size: var(--dy26-type-small);
}

hr {
  border: 0;
  border-block-start: 1px solid var(--dy26-border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  border: 1px solid var(--dy26-border);
  text-align: start;
}

th {
  color: var(--dy26-ivory);
  font-size: var(--dy26-type-label);
  font-weight: 500;
  letter-spacing: var(--dy26-tracking-label);
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid var(--dy26-border-strong);
  border-radius: var(--dy26-radius);
  outline: 0;
  background: rgba(8, 9, 8, 0.68);
  padding: 0.85rem 1rem;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--dy26-muted-deep);
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--dy26-bronze);
  box-shadow: var(--dy26-focus);
}

:focus-visible {
  outline: 2px solid var(--dy26-red-bright);
  outline-offset: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

[hidden] {
  display: none !important;
}

.screen-reader-text,
.dy26-screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.screen-reader-text:focus,
.dy26-screen-reader-text:focus {
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--dy26-ivory);
  color: var(--dy26-ink);
  padding: 0.75rem 1rem;
  white-space: normal;
}

.dy26-skip-link {
  position: fixed;
  z-index: 10000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  background: var(--dy26-ivory);
  color: var(--dy26-ink);
  padding: 0.75rem 1rem;
  transition: transform var(--dy26-duration-fast) ease;
}

.dy26-skip-link:focus {
  transform: translateY(0);
}

.dy26-main {
  min-height: 60vh;
}

.dy26-rich-text > :last-child,
.entry-content > :last-child {
  margin-block-end: 0;
}

.dy26-rich-text a,
.entry-content a {
  color: var(--dy26-ivory);
  text-decoration-color: var(--dy26-red);
}

.dy26-rich-text blockquote,
.entry-content blockquote {
  margin-block: 2rem;
  border-inline-start: 2px solid var(--dy26-red);
  color: var(--dy26-ivory);
  font-family: var(--dy26-font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  padding-inline-start: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
