@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:100,200,300,400,500,600,700,800,900&subset=latin&display=swap');
@import url('https://fonts.googleapis.com/css?family=Josefin+Slab:100,200,300,400,500,600,700,800,900&subset=latin&display=swap');

:root {
  --text: #4a4a4a;
  --heading: #333333;
  --muted: #8c8c8c;
  --link: #1e73be;
  --header: #dd9933;
  --title-band: #f5f5f5;
  --rule: #eaeaea;
}

* { box-sizing: border-box; }

html { background: #ffffff; }

body {
  margin: 0;
  background: rgba(0, 0, 0, .03);
  color: var(--text);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover, a:focus-visible { color: #155a92; text-decoration: underline; }

a:focus-visible, input:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -50px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--heading);
  color: #fff;
}

.skip-link:focus { top: 0; }

.site-shell { width: 100%; }

.site-header {
  height: 140px;
  background: var(--header);
}

.site-logo {
  display: inline-block;
  width: 512px;
  height: 140px;
  background: var(--header) url("cropped2-DMAE-OCEAN-FAVICON.png") left top / 512px 140px no-repeat;
}

.page-header {
  padding: 34px 0;
  background: var(--title-band);
}

.page-header-inner,
.content-wrap {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.page-header-title {
  margin: 0;
  color: var(--heading);
  font-family: 'Josefin Slab', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.page-header-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}

.page-header--inner .page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.page-header--inner .page-header-title {
  text-align: left;
}

.breadcrumb {
  color: var(--link);
  font-size: 13px;
  line-height: 1.4;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 8px;
  color: #bdbdbd;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 50px;
  padding: 50px 0;
}

.site-main { min-width: 0; }

.entry { margin: 0 0 40px; }

.entry-title {
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-bottom: 2px solid #6b943d;
  color: var(--muted);
  font-family: 'Josefin Slab', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
}

.entry-content,
.prose {
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--muted);
  font-family: 'Josefin Slab', serif;
  font-weight: 400;
}

.entry-content h1, .prose h1 {
  color: var(--heading);
  font-size: 32px;
  line-height: 1.4;
  margin: 0 0 20px;
}

.entry-content h2, .prose h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 20px;
}

.entry-content h3, .prose h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 20px;
}

.entry-content h4, .prose h4 {
  font-size: 13px;
  line-height: 1;
  margin: 0 0 20px;
}

.entry-content p, .prose p { margin: 0 0 20px; }

.entry-content ul, .entry-content ol,
.prose ul, .prose ol {
  margin: 0 0 20px;
  padding-left: 25px;
}

.entry-content li, .prose li { margin: 0; }

.entry-content blockquote, .prose blockquote {
  margin: 0 0 20px;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

.entry-content img, .prose img {
  max-width: 100%;
  height: auto;
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  box-shadow: none;
  border-radius: 0;
  transform: none;
}

.entry-content table, .prose table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
}

.entry-content th, .entry-content td,
.prose th, .prose td {
  padding: 8px 10px;
  border: 1px solid var(--rule);
  text-align: left;
}

.entry-content th, .prose th {
  color: var(--muted);
  font-family: 'Josefin Slab', serif;
  font-weight: 400;
}

.entry-content pre, .prose pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 20px;
  padding: 15px;
  background: #f5f5f5;
  font-family: monospace;
}

.entry-content code, .prose code {
  font-family: monospace;
  background: #f5f5f5;
}

.page-toc, .page-children { display: none; }

.page-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  font-size: 13px;
}

.page-metadata div {
  display: inline-flex;
  gap: 5px;
}

.page-metadata dt::after { content: ':'; }
.page-metadata dt { font-weight: 600; }
.page-metadata dd { margin: 0; }

.site-sidebar {
  min-width: 0;
  padding-left: 30px;
  border-left: 2px solid #6b943d;
  font-size: 13px;
  line-height: 1.8;
}

.sidebar-box { margin: 0 0 40px; }

.sidebar-box h4 {
  margin: 0 0 20px;
  padding-left: 15px;
  border-left: 3px solid var(--header);
  color: var(--muted);
  font-family: 'Josefin Slab', serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.sidebar-box ul { margin: 0; padding: 0; list-style: none; }
.sidebar-box li { margin: 0; }
.sidebar-box a { color: var(--link); }
.recent-posts li { margin-bottom: 12px; }
.recent-posts a, .recent-posts time { display: block; }
.recent-posts time { color: var(--text); font-size: 12px; }

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.site-search-form,
.search-page-form {
  margin: 0;
}

.site-search-row,
.search-page-form-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.site-search-row input,
.search-page-form-row input {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.site-search-row button,
.search-page-form-row button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--link);
  background: var(--link);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.site-search-row button:hover,
.site-search-row button:focus-visible,
.search-page-form-row button:hover,
.search-page-form-row button:focus-visible {
  border-color: #155a92;
  background: #155a92;
}

.search-page {
  max-width: 760px;
}

.search-status {
  margin: 28px 0 14px;
  color: var(--muted);
}

.search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-result {
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--rule);
}

.search-result-title {
  margin: 0 0 3px;
  color: var(--heading);
  font-family: 'Josefin Slab', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.search-result-path {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.search-result-snippet {
  margin: 0;
}

.search-no-results {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 40px 5%;
  background: #1d1d1d;
  color: #fff;
}

.theme-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
  font-size: 16px;
}

.footer-remark {
  max-width: 70%;
  color: #fff;
  font-weight: 600;
}

.footer-button {
  display: inline-block;
  min-width: 260px;
  padding: 8px 30px;
  border-radius: 999px;
  background: #1daee9;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
}

.footer-button a {
  color: inherit;
  text-decoration: none;
}

.footer-button a:hover,
.footer-button a:focus-visible {
  color: inherit;
  text-decoration: underline;
}

/* Instagram is a visual archive, so give its index and records a little
   breathing room instead of treating every page like a generic document. */
.instagram-index-content > h1:first-child,
.instagram-record-content > h1:first-child {
  display: none;
}

.instagram-search-panel {
  margin: 0 0 34px;
  padding: 22px 24px;
  border-left: 4px solid var(--header);
  background: #fffaf0;
}

.instagram-search-intro {
  margin: 0 0 14px;
  color: var(--heading);
  font-family: 'Josefin Slab', serif;
  font-size: 18px;
  line-height: 1.45;
}

.instagram-search label {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.instagram-search-row {
  display: flex;
  gap: 10px;
}

.instagram-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d8cdbd;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.instagram-search button {
  padding: 10px 18px;
  border: 0;
  background: #6b943d;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.instagram-search button:hover,
.instagram-search button:focus-visible {
  background: #52752d;
}

.instagram-search-status {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 30px 0 0;
}

.instagram-feed__item {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #e6ded2;
  background: #fff;
  box-shadow: 0 8px 20px rgba(75, 55, 32, .08);
}

.instagram-feed__item h2 {
  margin: 0 0 14px;
  color: var(--heading);
  font-family: 'Josefin Slab', serif;
  font-size: 17px;
  line-height: 1.45;
}

.instagram-feed__item h2 a {
  color: inherit;
}

.instagram-feed__meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.instagram-feed__item > a:last-child {
  display: block;
}

.instagram-feed__item > a:last-child img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0;
  background: #f3eee6;
}

.instagram-feed__item > a:last-child:hover img,
.instagram-feed__item > a:last-child:focus-visible img {
  box-shadow: 0 0 0 4px rgba(221, 153, 51, .35);
}

.instagram-no-results {
  margin: 28px 0;
  padding: 20px;
  border: 1px dashed #c9bda9;
  color: var(--muted);
  text-align: center;
}

.instagram-record-entry .entry-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.instagram-record-content > p:first-of-type {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.instagram-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.instagram-gallery__item {
  margin: 0;
  padding: 8px;
  border: 1px solid #e6ded2;
  background: #fff;
  box-shadow: 0 8px 20px rgba(75, 55, 32, .08);
}

.instagram-gallery__item img {
  display: block;
  width: 100%;
  margin: 0;
}

.instagram-video {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 28px 0;
  background: #1d1d1d;
}

@media (max-width: 1050px) {
  .instagram-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .content-wrap { grid-template-columns: 1fr; }
  .site-sidebar {
    width: 100%;
    padding-top: 35px;
    padding-left: 0;
    border-top: 2px solid #6b943d;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .site-header, .site-logo { height: auto; min-height: 0; }
  .site-logo { width: 100%; aspect-ratio: 512 / 140; background-size: 100% 100%; }
  .page-header { padding: 28px 0; }
  .page-header-title { font-size: 27px; }
  .page-header--inner .page-header-inner {
    display: block;
  }
  .page-header--inner .page-header-title { margin-bottom: 18px; }
  .breadcrumb ol { justify-content: flex-start; }
  .content-wrap { padding: 35px 0; }
  .entry-title { font-size: 27px; }
  .theme-footer__inner { display: block; }
  .footer-remark { display: block; max-width: none; margin-bottom: 25px; }
  .footer-button { display: block; width: 100%; }
  .site-search-row,
  .search-page-form-row { display: block; }
  .site-search-row input,
  .site-search-row button,
  .search-page-form-row input,
  .search-page-form-row button { width: 100%; }
  .site-search-row button,
  .search-page-form-row button { margin-top: 10px; }
  .instagram-search-row { display: block; }
  .instagram-search input,
  .instagram-search button { width: 100%; }
  .instagram-search button { margin-top: 10px; }
  .instagram-feed { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
