/*  
Theme Name: Season shrestha
Theme URI: https://eyedea.studio
Description: vanilla theme + menu toggle (RWD)
Version: 4.0
Author: Prisca Schmarsow & Erika Balode
Author URI: https://eyedea.studio
*/

/* =====================================================
   Design/build: WordPress themes — prototype stylesheet
   Updated 2025: modern HTML5 / CSS3 / accessibility

   DESIGN TOKENS
   #61676F  dark blue-grey  = body copy
   #3B4B5B  medium blue     = headings
   #CED3D8  soft blue-grey  = borders
   #869EB7  light blue      = meta / label text
   #DB5E00  rust orange     = active / accent colour
   #272A31  near-black      = header + footer bg
   #84CBFC  sky blue        = hover highlight
   ===================================================== */

/* ── RESET (Eric Meyer v2 — thank you, Eric :-) ──────
   https://meyerweb.com/eric/tools/css/reset/          */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font: inherit;
  text-rendering: optimizeLegibility;
}

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

/* ── GENERAL ───────────────────────────────────────── */
body {
  background: #f9f9f9 url(images/noise.png);
  color: #61676f;
  font-size: 1em;
  line-height: 1.5;
  font-family: "Fira Sans Condensed", Calibri, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.2em 0;
  font-size: 2em;
  color: #3b4b5b;
}
h1 {
  font-size: 2.2em;
  font-weight: 900;
}
h2 {
  font-size: 2em;
  font-weight: 700;
}
h3 {
  font-size: 1.6em;
  color: rgba(60, 75, 90, 0.6);
  display: block;
  border-bottom: 1px solid #282a31;
}

p {
  margin: 0 0 1.2em 0;
}
em {
  font-style: italic;
}
strong {
  font-weight: bold;
}

ul {
  margin: 0 0 1.2em 1.2em;
  list-style: square;
}
ol {
  margin: 0 0 1.2em 1.2em;
  list-style: decimal;
}
li {
  margin: 0 0 0.8em 0;
}

blockquote,
q {
  quotes: none;
  padding: 1em;
  margin: 0 0 0 -1em;
  font-weight: 300;
  font-size: 1.2em;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}

blockquote::before {
  content: "\201C ";
  font-family: serif;
  float: left;
  margin: -0.3em 0 0 -0.6em;
  font-size: 1.6em;
}

cite {
  display: block;
  margin: 0 0 2em 0;
  padding: 0 1em 1em;
  text-align: right;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  font-size: inherit;
}
th {
  font-weight: bold;
  vertical-align: bottom;
}
td {
  font-weight: normal;
  vertical-align: top;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted #333;
  cursor: help;
}

input,
select {
  vertical-align: middle;
  font-size: 1.2em;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

pre,
code {
  font-family: monospace, sans-serif;
}

acronym {
  border-bottom: 1px dotted #61676f;
}

/* responsive media */
img,
object,
embed {
  max-width: 100%;
  height: auto;
}

/* ── ACCESSIBILITY UTILITIES ────────────────────────── */

/* Skip link — visible on focus for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #db5e00;
  color: #fff;
  padding: 0.5em 1em;
  font-weight: 700;
  text-decoration: none;
  z-index: 1000;
  border-bottom: 2px solid #fff;
}
.skip-link:focus-visible {
  top: 0;
}

/* Visually hidden but accessible to screen readers.
   Used on search label and other elements that need
   to be present in the DOM but not visible on screen.
   opacity:0 + clip approach keeps it in the DOM
   and avoids negative text-indent which can cause
   performance issues on some screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal;
}

/* ── LINK STYLING ───────────────────────────────────── */
a:link,
a:visited {
  color: #db5e00;
  text-decoration: none;
  border-bottom: 1px solid #db5e00;
}

/* remove decorative border on nav / headings / footer links */
header a:link,
nav a:link,
footer a:link,
h1 a:link,
h2 a:link,
h3 a:link {
  border: 0;
}

a:hover,
a:active {
  color: #2879ab;
}

/* focus-visible: keyboard-only focus ring, not shown on mouse click */
a:focus-visible {
  color: #2879ab;
  outline: 2px solid #db5e00;
  outline-offset: 2px;
}

/* ── HEADER ─────────────────────────────────────────── */
header {
  margin: 1px 0 0 0;
  padding: 3em 0 0 0;
  text-align: center;
  background: #272a31;
  position: relative;
}

header h1 {
  color: #db5e00;
}

header p.site-description {
  margin: 0;
  padding: 0 0 1.6em 0;
  font-size: 1.1em;
  color: #84cbfc;
}

header form {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: #db5e00;
  border-radius: 0 25px;
  border: 4px solid #db5e00;
  padding: 5px;
  transition:
    width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
}

/* label is screen-reader-text — visually hidden, accessible */
header form label {
}

header form input {
  font-family: "Fira Sans Condensed", Calibri, Helvetica, sans-serif;
  font-size: 1.36em;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 42.5px;
  line-height: 30px;
  outline: 0;
  border: 0;
  display: none;
  border-radius: 20px;
  padding: 0 20px;
}

header form input#s {
  padding-left: 45px;
}

header form input#searchsubmit {
  display: block;
  padding: 10px;
  width: 44px;
  height: 44px;
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 200;
  border-radius: 50%;
  border: 0;
  color: #07051a;
  text-align: center;
  background: transparent url(images/search-icon-white.svg) no-repeat center;
  background-size: contain;
  cursor: pointer;
}

header form:hover,
form:active {
  width: 200px;
  cursor: pointer;
  border-color: #d75f1b;
  border-radius: 0 0 0 25px;
}
header form:hover input#s,
header form:active input#s {
  display: block;
}
header form:hover input#searchsubmit {
  background-image: url(images/search-icon-orange.svg);
}

/* focus-visible state for search form inputs */
header form input:focus-visible {
  outline: 2px solid #84cbfc;
  outline-offset: 1px;
}

/* ── NAV ────────────────────────────────────────────── */
nav {
  margin: 0 0 3em 0;
}

/* ── CSS-ONLY TOGGLE ─────────────────────────────────────────────────────── */
input[type="checkbox"]#menu-toggle {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

label.toggle {
  display: block;
  cursor: pointer;
}

/* focus indicator for keyboard users tabbing to the toggle */
input[type="checkbox"]#menu-toggle:focus-visible + label.toggle {
  outline: 2px solid #84cbfc;
  outline-offset: 2px;
}

/* show/hide menu */
input[type="checkbox"]#menu-toggle + label.toggle + ul {
  display: none;
}
input[type="checkbox"]#menu-toggle:checked + label.toggle + ul {
  display: block;
}

/* toggle button style */
nav strong {
  display: block;
  padding: 0.2em 10%;
  font-size: 1.1em;
  font-weight: 400;
  color: #fff;
  background: #d75f1b;
  transition:
    background 0.2s ease-in-out,
    color 0.2s ease-in-out;
}

/* down-arrow before the menu label */
nav label.toggle strong::before {
  content: " \25BC ";
  float: left;
  margin: 0.4em 0.6em 0 0;
  font-size: 0.9em;
  line-height: 1;
}

nav label.toggle strong:hover,
nav label.toggle strong:active {
  background: #84cbfc;
  color: #272a31;
}

/* nav list */
nav ul {
  list-style: none;
  margin: 0;
}
nav ul li {
  margin: 0;
}

nav ul li a {
  font-size: 1.2em;
  display: block;
  padding: 0.2em 10%;
  text-decoration: none;
  color: #5e6e6d;
  transition:
    background 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

nav ul li a:link,
nav ul li a:visited {
  background: none;
  border: 0;
}

nav ul li a:hover,
nav ul li a:active {
  background: #db5e00;
  color: #fff;
}

nav ul li a:focus-visible {
  background: #db5e00;
  color: #fff;
  outline: 2px solid #84cbfc;
  outline-offset: -2px;
}

/* current page item */
nav ul li.cur a:link,
nav ul li.cur a:visited {
  color: #000;
}

nav ul li.cur a:hover,
nav ul li.cur a:active,
nav ul li.cur a:focus-visible {
  background: #84cbfc;
  color: #000;
}

/* ── CONTENT ─────────────────────────────────────────── */
#content {
  width: 80%;
  max-width: 126ch;
  margin: 0 auto;
  padding: 0 0 3em;
  position: relative; /* for absolute-positioned sidebar */
}

.meta {
  display: inline-block;
  border-top: 1px solid #84cbfc;
  padding: 3px 0;
  font-size: 0.9em;
}
.meta em {
  font-style: normal;
  color: #869eb7;
}

.excerpt {
}

.read a:link,
.read a:visited {
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding: 0.6ch 1ch;
  border-bottom: 1px solid #2879ab;
  border-radius: 0 2ch 2ch 0;
  color: #2879ab;
  transition:
    background 0.3s ease-in-out,
    color 0.3s ease-in-out,
    text-indent 0.3s ease-in-out;
}
.read a:hover,
.read a:active {
  background: #2879ab;
  color: #fff;
  text-indent: 2ch;
}
.read a:focus-visible {
  background: #2879ab;
  color: #fff;
  outline: 2px solid #db5e00;
  outline-offset: 2px;
}

/* animated dot before read-more link */
.read a:link::before {
  content: " \2022 ";
  color: #d75f1b;
  position: absolute;
  left: 0;
  transition: left 0.3s ease-in-out;
}
.read a:hover::before,
.read a:focus-visible::before {
  left: -3ch;
}

/* ── SIDEBAR ──────────────────────────────────────────────────────── */
aside {
  display: block;
  margin: 3em 0;
}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  min-height: 6em;
  padding: 1em 0;
  background: #272a31;
  text-align: center;
  color: rgba(246, 246, 246, 0.8);
}

footer ul {
  list-style: none;
  margin: 0;
}

footer ul li a {
  font-size: 1em;
  display: inline-block;
  padding: 0.2em 0.6em;
  text-decoration: none;
  border: 0;
  color: rgba(246, 246, 246, 0.8);
  transition: color 0.2s ease-in-out;
}

footer ul li a:link,
footer ul li a:visited {
  color: rgba(246, 246, 246, 0.8);
}

footer ul li a:hover,
footer ul li a:active {
  color: #db5e00;
}

footer ul li a:focus-visible {
  color: #db5e00;
  outline: 2px solid #db5e00;
  outline-offset: 2px;
}

/* ── PAGE-SPECIFIC: single article ──────────────────── */
.single article h3 {
  border-width: 2px;
  margin-top: 3ch;
}
.single article h3:first-of-type {
  margin-top: 1ch;
}

/* ── MEDIA QUERIES ───────────────────────────────────── */
@media (min-width: 562px) {
  /* hide toggle, show nav list */
  input[type="checkbox"]#menu-toggle + label.toggle {
    display: none;
  }
  input[type="checkbox"]#menu-toggle + label.toggle + ul,
  input[type="checkbox"]#menu-toggle:checked + label.toggle + ul {
    display: block;
  }

  nav {
    margin: 0 0 3em 0;
    text-align: center;
  }
  nav ul {
    overflow: hidden;
    max-width: 126ch;
    margin: 0 auto;
    border-bottom: 1px solid rgba(40, 42, 49, 1);
  }
  nav ul li {
    display: inline;
    margin: 0;
  }
  nav ul li a {
    display: inline-block;
    margin: 0;
    padding: 0.2em 0.4em;
  }

  blockquote {
    width: 60%;
    margin: 0 auto -1em auto;
    border-top: 1px solid #879fb6;
  }
  cite {
    width: 60%;
    margin: 0 auto 2em auto;
    border-bottom: 1px solid #879fb6;
  }

  footer ul li {
    display: inline;
  }
}

@media (min-width: 650px) {
  nav ul li a {
    padding: 0.2em 0.8em;
  }
}

@media (min-width: 840px) {
  article {
    width: 60%;
    margin: 0 0 3em 0;
  }
  .page article,
  .single article {
    width: 100%;
  }

  /* sidebar: positioned top-right within #content */
  aside {
    width: 32%;
    padding: 0 0 0 2%;
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }
  .single #content aside {
    width: 100%;
    padding: 0;
    position: relative;
  }
}
